#270232#270232

#270232 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.094 H 317.1°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#270232
RGBrgb(39, 2, 50)
HSLhsl(286, 92%, 10%)
HSVhsv(286, 96%, 20%)
CMYKcmyk(22%, 96%, 0%, 80.4%)
CIE-LABlab(6.37, 27.13, -22.36)
CIE-LCHlch(6.37, 35.15, 320.51°)
OKLaboklab(20.43% 0.0687 -0.0637)
OKLCHoklch(20.43% 0.094 317.1)
XYZxyz(1.4340, 0.7051, 3.0776)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270232 #0D3202
analogous
#0F0232 #270232 #320225
triadic
#270232 #322702 #023227
tetradic
#270232 #320F02 #0D3202 #022532
square
#270232 #320F02 #0D3202 #022532
split-complementary
#270232 #253202 #02320F
monochromatic
#17011D #17011D #270232 #55046D #8307A8

Accessibility & contrast

On white

18.40
#270232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#270232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270232
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270232#FFFFFF#000000##FFFFFF
##2702321.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001233
Deuteranopia (green-blind)
#021531
Tritanopia (blue-blind)
#260C1A
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #270232;
/* rgb */ color: rgb(39, 2, 50);
/* oklch */ color: oklch(20.4% 0.094 317.1);
Tailwind
colors: {
  custom: {
    50: '#63476a',
    500: '#270232',
    950: '#000000',
  },
}
SCSS
$custom: #270232;
$custom-light: #63476a;
$custom-dark: #000000;
JSON
{
  "hex": "#270232",
  "rgb": {
    "r": 39,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 286.25,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20432,
    "c": 0.09365,
    "h": 317.1
  },
  "luminance": 0.00705
}

Semantic roles & 50–950 ramp

primary
#270232
secondary
#2F7619
accent
#FF295A
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#050006
muted
#7A777A

Preview Lab

Preview with #270232

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

Preview Lab → · Contrast checker → · Palette generator →

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