#AF2727#AF2727

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

Color values

HEX#AF2727
RGBrgb(175, 39, 39)
HSLhsl(0, 64%, 42%)
HSVhsv(0, 78%, 69%)
CMYKcmyk(0%, 77.7%, 77.7%, 31.4%)
CIE-LABlab(39.10, 53.71, 34.59)
CIE-LCHlch(39.10, 63.88, 32.79°)
OKLaboklab(49.57% 0.1548 0.0762)
OKLCHoklch(49.57% 0.173 26.2)
XYZxyz(18.7732, 10.7145, 2.9987)
Luminance0.1071 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2727 #27AFAF
analogous
#AF276B #AF2727 #AF6B27
triadic
#AF2727 #27AF27 #2727AF
tetradic
#AF2727 #6BAF27 #27AFAF #6B27AF
square
#AF2727 #6BAF27 #27AFAF #6B27AF
split-complementary
#AF2727 #27AF6B #276BAF
monochromatic
#4B1111 #7D1C1C #AF2727 #D43F3F #DF7171

Accessibility & contrast

On white

6.68
#AF2727 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#AF2727 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2727
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2727#FFFFFF#000000##FFFFFF
##AF27271.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514925
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#C10029
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af2727;
/* rgb */ color: rgb(175, 39, 39);
/* oklch */ color: oklch(49.6% 0.173 26.2);
Tailwind
colors: {
  custom: {
    50: '#d06d62',
    500: '#af2727',
    950: '#000000',
  },
}
SCSS
$custom: #af2727;
$custom-light: #d06d62;
$custom-dark: #000000;
JSON
{
  "hex": "#af2727",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 39
  },
  "hsl": {
    "h": 0,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49571,
    "c": 0.17256,
    "h": 26.2
  },
  "luminance": 0.10711
}

Semantic roles & 50–950 ramp

primary
#AF2727
secondary
#6BC6C6
accent
#E7E741
background
#FEF7F5
surface
#FCEDEA
border
#D5C8C6
text
#160805
muted
#847B79

Preview Lab

Preview with #AF2727

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

Preview Lab → · Contrast checker → · Palette generator →

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