#270636#270636

#270636 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.091 H 312.7°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#270636
RGBrgb(39, 6, 54)
HSLhsl(281, 80%, 12%)
HSVhsv(281, 89%, 21%)
CMYKcmyk(27.8%, 88.9%, 0%, 78.8%)
CIE-LABlab(7.48, 26.07, -23.51)
CIE-LCHlch(7.48, 35.10, 317.95°)
OKLaboklab(21.4% 0.0614 -0.0666)
OKLCHoklch(21.4% 0.091 312.7)
XYZxyz(1.5676, 0.8280, 3.5666)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270636 #153606
analogous
#0F0636 #270636 #36062D
triadic
#270636 #362706 #063627
tetradic
#270636 #360F06 #153606 #062D36
square
#270636 #360F06 #153606 #062D36
split-complementary
#270636 #2D3606 #06360F
monochromatic
#14031C #14031C #270636 #4F0C6D #7712A4

Accessibility & contrast

On white

18.02
#270636 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#270636 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270636
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270636#FFFFFF#000000##FFFFFF
##2706361.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#021735
Tritanopia (blue-blind)
#25111D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #270636;
/* rgb */ color: rgb(39, 6, 54);
/* oklch */ color: oklch(21.4% 0.091 312.7);
Tailwind
colors: {
  custom: {
    50: '#64496d',
    500: '#270636',
    950: '#000000',
  },
}
SCSS
$custom: #270636;
$custom-light: #64496d;
$custom-dark: #000000;
JSON
{
  "hex": "#270636",
  "rgb": {
    "r": 39,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 281.25,
    "s": 80,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21403,
    "c": 0.09056,
    "h": 312.7
  },
  "luminance": 0.00828
}

Semantic roles & 50–950 ramp

primary
#270636
secondary
#3C7621
accent
#F6316F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050107
muted
#7A777A

Preview Lab

Preview with #270636

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

Preview Lab → · Contrast checker → · Palette generator →

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