#AF313D#AF313D
#AF313D is a mid, vivid red. Relative luminance 0.116; OKLCH L 50.8% C 0.162 H 20.0°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #AF313D |
|---|---|
| RGB | rgb(175, 49, 61) |
| HSL | hsl(354, 56%, 44%) |
| HSV | hsv(354, 72%, 69%) |
| CMYK | cmyk(0%, 72%, 65.1%, 31.4%) |
| CIE-LAB | lab(40.66, 51.31, 23.17) |
| CIE-LCH | lch(40.66, 56.30, 24.31°) |
| OKLab | oklab(50.83% 0.152 0.0552) |
| OKLCH | oklch(50.83% 0.162 20) |
| XYZ | xyz(19.6219, 11.6504, 5.6295) |
| Luminance | 0.1165 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Cardinal
#C41E3A
ΔE00 3.82
Rose Red
#BE013C
ΔE00 4.39
Lipstick Red
#C0022F
ΔE00 4.41
Rouge
#AB1239
ΔE00 4.69
Dull Red
#BB3F3F
ΔE00 4.80
Brown
#A52A2A
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF313D #31AFA3
analogous
#AF317C #AF313D #AF6431
triadic
#AF313D #3DAF31 #313DAF
tetradic
#AF313D #7CAF31 #31AFA3 #6431AF
square
#AF313D #7CAF31 #31AFA3 #6431AF
split-complementary
#AF313D #31AF64 #317CAF
monochromatic
#4F161C #7F242C #AF313D #CE4F5B #DB7F88
Accessibility & contrast
On white
6.31
#AF313D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#AF313D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF313D
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF313D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF313D | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544F3D
Deuteranopia (green-blind)
#746A39
Tritanopia (blue-blind)
#C00636
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #af313d; /* rgb */ color: rgb(175, 49, 61); /* oklch */ color: oklch(50.8% 0.162 20.0);
Tailwind
colors: {
custom: {
50: '#ce7272',
500: '#af313d',
950: '#000000',
},
}SCSS
$custom: #af313d; $custom-light: #ce7272; $custom-dark: #000000;
JSON
{
"hex": "#af313d",
"rgb": {
"r": 175,
"g": 49,
"b": 61
},
"hsl": {
"h": 354.286,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.50833,
"c": 0.16168,
"h": 20
},
"luminance": 0.11648
}Semantic roles & 50–950 ramp
primary
#AF313D
secondary
#78C4BD
accent
#E0D148
background
#FDF7F6
surface
#FBEDEC
border
#D4C8C7
text
#150808
muted
#837B7B