#270217#270217

#270217 is a very dark, moderate pink. Relative luminance 0.005; OKLCH L 18.4% C 0.070 H 349.6°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#270217
RGBrgb(39, 2, 23)
HSLhsl(326, 90%, 8%)
HSVhsv(326, 95%, 15%)
CMYKcmyk(0%, 94.9%, 41%, 84.7%)
CIE-LABlab(4.85, 20.18, -3.95)
CIE-LCHlch(4.85, 20.56, 348.92°)
OKLaboklab(18.44% 0.069 -0.0126)
OKLCHoklch(18.44% 0.07 349.6)
XYZxyz(1.0131, 0.5367, 0.8607)
Luminance0.0054 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270217 #022712
analogous
#240227 #270217 #270204
triadic
#270217 #172702 #021727
tetradic
#270217 #272402 #022712 #020427
square
#270217 #272402 #022712 #020427
split-complementary
#270217 #042702 #022724
monochromatic
#1D0111 #1D0111 #270217 #610539 #9B085C

Accessibility & contrast

On white

18.96
#270217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#270217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270217
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270217#FFFFFF#000000##FFFFFF
##2702171.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070C18
Deuteranopia (green-blind)
#121316
Tritanopia (blue-blind)
#2B010A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #270217;
/* rgb */ color: rgb(39, 2, 23);
/* oklch */ color: oklch(18.4% 0.070 349.6);
Tailwind
colors: {
  custom: {
    50: '#634753',
    500: '#270217',
    950: '#000000',
  },
}
SCSS
$custom: #270217;
$custom-light: #634753;
$custom-dark: #000000;
JSON
{
  "hex": "#270217",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 23
  },
  "hsl": {
    "h": 325.946,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.1844,
    "c": 0.0701,
    "h": 349.6
  },
  "luminance": 0.00537
}

Semantic roles & 50–950 ramp

primary
#270217
secondary
#186C3D
accent
#FF8529
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#050002
muted
#7A7778

Preview Lab

Preview with #270217

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

Preview Lab → · Contrast checker → · Palette generator →

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