#270126#270126

#270126 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.085 H 329.4°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#270126
RGBrgb(39, 1, 38)
HSLhsl(302, 95%, 8%)
HSVhsv(302, 97%, 15%)
CMYKcmyk(0%, 97.4%, 2.6%, 84.7%)
CIE-LABlab(5.36, 24.28, -14.91)
CIE-LCHlch(5.36, 28.50, 328.44°)
OKLaboklab(19.24% 0.0728 -0.0431)
OKLCHoklch(19.24% 0.085 329.4)
XYZxyz(1.1974, 0.5931, 1.8848)
Luminance0.0059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270126 #012702
analogous
#150127 #270126 #270113
triadic
#270126 #262701 #012627
tetradic
#270126 #271501 #012702 #011327
square
#270126 #271501 #012702 #011327
split-complementary
#270126 #132701 #012715
monochromatic
#1E011D #1E011D #270126 #630360 #9E049A

Accessibility & contrast

On white

18.77
#270126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#270126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270126
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270126#FFFFFF#000000##FFFFFF
##2701261.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E27
Deuteranopia (green-blind)
#0B1425
Tritanopia (blue-blind)
#290512
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #270126;
/* rgb */ color: rgb(39, 1, 38);
/* oklch */ color: oklch(19.2% 0.085 329.4);
Tailwind
colors: {
  custom: {
    50: '#634660',
    500: '#270126',
    950: '#000000',
  },
}
SCSS
$custom: #270126;
$custom-light: #634660;
$custom-dark: #000000;
JSON
{
  "hex": "#270126",
  "rgb": {
    "r": 39,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 301.579,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.1924,
    "c": 0.08462,
    "h": 329.4
  },
  "luminance": 0.00593
}

Semantic roles & 50–950 ramp

primary
#270126
secondary
#166E18
accent
#FF2E29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#050005
muted
#7A7779

Preview Lab

Preview with #270126

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

Preview Lab → · Contrast checker → · Palette generator →

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