#AF2238#AF2238

#AF2238 is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.4% C 0.175 H 18.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#AF2238
RGBrgb(175, 34, 56)
HSLhsl(351, 67%, 41%)
HSVhsv(351, 81%, 69%)
CMYKcmyk(0%, 80.6%, 68%, 31.4%)
CIE-LABlab(38.81, 55.95, 23.95)
CIE-LCHlch(38.81, 60.86, 23.17°)
OKLaboklab(49.43% 0.1658 0.0564)
OKLCHoklch(49.43% 0.175 18.8)
XYZxyz(18.9672, 10.5465, 4.7776)
Luminance0.1054 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2238 #22AF99
analogous
#AF227E #AF2238 #AF5222
triadic
#AF2238 #38AF22 #2238AF
tetradic
#AF2238 #7EAF22 #22AF99 #5222AF
square
#AF2238 #7EAF22 #22AF99 #5222AF
split-complementary
#AF2238 #22AF52 #227EAF
monochromatic
#490E17 #7C1828 #AF2238 #D8364F #E2697C

Accessibility & contrast

On white

6.76
#AF2238 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#AF2238 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2238
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2238#FFFFFF#000000##FFFFFF
##AF22381.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4838
Deuteranopia (green-blind)
#706634
Tritanopia (blue-blind)
#C0002C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #af2238;
/* rgb */ color: rgb(175, 34, 56);
/* oklch */ color: oklch(49.4% 0.175 18.8);
Tailwind
colors: {
  custom: {
    50: '#cf6c6e',
    500: '#af2238',
    950: '#000000',
  },
}
SCSS
$custom: #af2238;
$custom-light: #cf6c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#af2238",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 350.638,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49432,
    "c": 0.17508,
    "h": 18.8
  },
  "luminance": 0.10544
}

Semantic roles & 50–950 ramp

primary
#AF2238
secondary
#65C8B8
accent
#EACF3D
background
#FDF6F6
surface
#FBECEB
border
#D4C7C6
text
#150807
muted
#837A7A

Preview Lab

Preview with #AF2238

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF2238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva