#27156D#27156D

#27156D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.141 H 282.6°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#27156D
RGBrgb(39, 21, 109)
HSLhsl(252, 68%, 25%)
HSVhsv(252, 81%, 43%)
CMYKcmyk(64.2%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.86, 34.61, -47.58)
CIE-LCHlch(15.86, 58.84, 306.03°)
OKLaboklab(29.01% 0.0306 -0.1372)
OKLCHoklch(29.01% 0.141 282.6)
XYZxyz(3.8643, 2.0715, 14.6612)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27156D #5B6D15
analogous
#152F6D #27156D #53156D
triadic
#27156D #6D2715 #156D27
tetradic
#27156D #6D152F #5B6D15 #156D53
square
#27156D #6D152F #5B6D15 #156D53
split-complementary
#27156D #6D5315 #2F6D15
monochromatic
#09051A #150B3A #27156D #391FA0 #4C29D4

Accessibility & contrast

On white

14.85
#27156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#27156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27156D
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27156D#FFFFFF#000000##FFFFFF
##27156D1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #27156d;
/* rgb */ color: rgb(39, 21, 109);
/* oklch */ color: oklch(29.0% 0.141 282.6);
Tailwind
colors: {
  custom: {
    50: '#6b5598',
    500: '#27156d',
    950: '#000000',
  },
}
SCSS
$custom: #27156d;
$custom-light: #6b5598;
$custom-dark: #000000;
JSON
{
  "hex": "#27156d",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 252.273,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29006,
    "c": 0.14059,
    "h": 282.6
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#27156D
secondary
#8EA33A
accent
#EB3DC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #27156D

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

Preview Lab → · Contrast checker → · Palette generator →

#27156D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva