Template:PTG/contrast-row
Appearance
{{PTG/contrast-row-build}}
|-
|
|
| style="color:#000000; background:#000000" | #000000
| style="color:#000000;" | #000000
| 1
|
none
| | | 0 | 0 | style="background:#FF4C4C;" | | 0 | 0 | | 0 | 0 | 0-0-0 |
Usage
[edit]- {{PTG/contrast-header}}
- {{PTG/contrast-row}} -- calculate values
|set=
|name=
- bgcolor =
|name=
- color =
|fontcolor=
|note=
|hsv=yes
- {{PTG/contrast-row-build}} -- compose the columns
- {{PTG/contrast-row-hsv-columns}} -- calc hsv
- {{PTG/contrast-conform-bg}} -- red/green AAA/AA/bg setting
|hsv=no
suppresses values HSV, decimal and luminance.- Table to be closed with manual
|}
or {{End}}.
example
[edit]{{PTG/contrast-header|set=demo|note=}}
{{PTG/contrast-row|set=demo|name=AM|fontcolor=black|note=}}
{{PTG/contrast-row|set=demo|name=AEM|fontcolor=black|note=}}
{{PTG/contrast-row|set=demo|name=WIK|fontcolor=black|note=|hsv=no}}
|}
sort | name | bg | font | ratio | conf w3c |
lum [0–1] |
Hue [0–360] |
HSL Sat [0–1] |
HSL Lum [0–1] |
HSV Sat [0–1] |
HSV Val [0–1] |
RGB dec [0–255] |
note | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
12 (s) | AM | #ff9d9d | #000000 | 10.56 |
AAA
|
0.48 | 0 | | 1 | 0.808 | 0.384 | 1 | 255-157-157 | |||
14 (s) | AEM | #ffdead | #000000 | 16.3 |
AAA
|
0.77 | 35.9 | | 1 | 0.839 | 0.322 | 1 | 255-222-173 | |||
96 (–) | WIK | #d8bfd8 | #000000 | 12.36 |
AAA
|
|||||||||||
42 (p) | MOID | #cccc99 | #000000 | 12.66 |
AAA
|
0.58 | 60 | | 0.333 | 0.7 | 0.25 | 0.8 | 204-204-153 | |||
54 (p) | ONONM | #a0ffa0 | #000000 | 17.31 |
AAA
|
0.82 | 120 | | 1 | 0.814 | 0.373 | 1 | 160-255-160 | C, P, S, Se | ||
56 (p) | HAL | #ffff99 | #000000 | 20.02 |
AAA
|
0.95 | 60 | | 1 | 0.8 | 0.4 | 1 | 255-255-153 | I, At |