#9A1F2A#9A1F2A

#9A1F2A is a mid, vivid red. Relative luminance 0.080; OKLCH L 45.1% C 0.158 H 22.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#9A1F2A
RGBrgb(154, 31, 42)
HSLhsl(355, 66%, 36%)
HSVhsv(355, 80%, 60%)
CMYKcmyk(0%, 79.9%, 72.7%, 39.6%)
CIE-LABlab(34.02, 49.92, 25.92)
CIE-LCHlch(34.02, 56.24, 27.44°)
OKLaboklab(45.06% 0.1462 0.0594)
OKLCHoklch(45.06% 0.158 22.1)
XYZxyz(14.2360, 8.0194, 2.9884)
Luminance0.0802 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F2A #1F9A8F
analogous
#9A1F68 #9A1F2A #9A521F
triadic
#9A1F2A #2A9A1F #1F2A9A
tetradic
#9A1F2A #689A1F #1F9A8F #521F9A
square
#9A1F2A #689A1F #1F9A8F #521F9A
split-complementary
#9A1F2A #1F9A52 #1F689A
monochromatic
#340A0E #67151C #9A1F2A #CD2938 #DD5662

Accessibility & contrast

On white

8.07
#9A1F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#9A1F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F2A
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F2A#FFFFFF#000000##FFFFFF
##9A1F2A1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453F29
Deuteranopia (green-blind)
#635926
Tritanopia (blue-blind)
#AA0024
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #9a1f2a;
/* rgb */ color: rgb(154, 31, 42);
/* oklch */ color: oklch(45.1% 0.158 22.1);
Tailwind
colors: {
  custom: {
    50: '#c06763',
    500: '#9a1f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f2a;
$custom-light: #c06763;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f2a",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 42
  },
  "hsl": {
    "h": 354.634,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.15782,
    "h": 22.1
  },
  "luminance": 0.08017
}

Semantic roles & 50–950 ramp

primary
#9A1F2A
secondary
#54C1B7
accent
#E9DA3E
background
#FCF6F5
surface
#F9EBEA
border
#D2C6C6
text
#140705
muted
#827A79

Preview Lab

Preview with #9A1F2A

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

Preview Lab → · Contrast checker → · Palette generator →

#9A1F2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva