#270212#270212

#270212 is a very dark, moderate pink. Relative luminance 0.005; OKLCH L 18.2% C 0.067 H 357.7°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#270212
RGBrgb(39, 2, 18)
HSLhsl(334, 90%, 8%)
HSVhsv(334, 95%, 15%)
CMYKcmyk(0%, 94.9%, 53.8%, 84.7%)
CIE-LABlab(4.68, 19.21, -0.81)
CIE-LCHlch(4.68, 19.23, 357.59°)
OKLaboklab(18.2% 0.0672 -0.0027)
OKLCHoklch(18.2% 0.067 357.7)
XYZxyz(0.9677, 0.5186, 0.6213)
Luminance0.0052 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270212 #022717
analogous
#270224 #270212 #270402
triadic
#270212 #122702 #021227
tetradic
#270212 #242702 #022717 #040227
square
#270212 #242702 #022717 #040227
split-complementary
#270212 #022704 #022427
monochromatic
#1D010D #1D010D #270212 #61052D #9B0848

Accessibility & contrast

On white

19.03
#270212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#270212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270212
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270212#FFFFFF#000000##FFFFFF
##2702121.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080B12
Deuteranopia (green-blind)
#131311
Tritanopia (blue-blind)
#2B0008
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #270212;
/* rgb */ color: rgb(39, 2, 18);
/* oklch */ color: oklch(18.2% 0.067 357.7);
Tailwind
colors: {
  custom: {
    50: '#634750',
    500: '#270212',
    950: '#000000',
  },
}
SCSS
$custom: #270212;
$custom-light: #634750;
$custom-dark: #000000;
JSON
{
  "hex": "#270212",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 18
  },
  "hsl": {
    "h": 334.054,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18195,
    "c": 0.06725,
    "h": 357.7
  },
  "luminance": 0.00518
}

Semantic roles & 50–950 ramp

primary
#270212
secondary
#186C48
accent
#FFA229
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#050002
muted
#7A7778

Preview Lab

Preview with #270212

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

Preview Lab → · Contrast checker → · Palette generator →

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