#AF2531#AF2531

#AF2531 is a mid, vivid red. Relative luminance 0.107; OKLCH L 49.5% C 0.173 H 22.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#AF2531
RGBrgb(175, 37, 49)
HSLhsl(355, 65%, 42%)
HSVhsv(355, 79%, 69%)
CMYKcmyk(0%, 78.9%, 72%, 31.4%)
CIE-LABlab(39.00, 54.74, 28.53)
CIE-LCHlch(39.00, 61.72, 27.53°)
OKLaboklab(49.55% 0.1603 0.0654)
OKLCHoklch(49.55% 0.173 22.2)
XYZxyz(18.8973, 10.6618, 3.9680)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2531 #25AFA3
analogous
#AF2576 #AF2531 #AF5E25
triadic
#AF2531 #31AF25 #2531AF
tetradic
#AF2531 #76AF25 #25AFA3 #5E25AF
square
#AF2531 #76AF25 #25AFA3 #5E25AF
split-complementary
#AF2531 #25AF5E #2576AF
monochromatic
#4A1015 #7C1A23 #AF2531 #D63C49 #E06E78

Accessibility & contrast

On white

6.71
#AF2531 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#AF2531 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2531
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2531#FFFFFF#000000##FFFFFF
##AF25311.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4930
Deuteranopia (green-blind)
#71662C
Tritanopia (blue-blind)
#C1002B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af2531;
/* rgb */ color: rgb(175, 37, 49);
/* oklch */ color: oklch(49.5% 0.173 22.2);
Tailwind
colors: {
  custom: {
    50: '#cf6d69',
    500: '#af2531',
    950: '#000000',
  },
}
SCSS
$custom: #af2531;
$custom-light: #cf6d69;
$custom-dark: #000000;
JSON
{
  "hex": "#af2531",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 49
  },
  "hsl": {
    "h": 354.783,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49545,
    "c": 0.17312,
    "h": 22.2
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#AF2531
secondary
#69C7BF
accent
#E8D940
background
#FDF6F6
surface
#FBECEB
border
#D4C7C6
text
#150806
muted
#837B7A

Preview Lab

Preview with #AF2531

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

Preview Lab → · Contrast checker → · Palette generator →

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