#27156C#27156C

#27156C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.139 H 282.8°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#27156C
RGBrgb(39, 21, 108)
HSLhsl(252, 67%, 25%)
HSVhsv(252, 81%, 42%)
CMYKcmyk(63.9%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.75, 34.29, -47.11)
CIE-LCHlch(15.75, 58.27, 306.05°)
OKLaboklab(28.9% 0.0309 -0.1358)
OKLCHoklch(28.9% 0.139 282.8)
XYZxyz(3.8108, 2.0501, 14.3793)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27156C #5A6C15
analogous
#152E6C #27156C #52156C
triadic
#27156C #6C2715 #156C27
tetradic
#27156C #6C152E #5A6C15 #156C52
square
#27156C #6C152E #5A6C15 #156C52
split-complementary
#27156C #6C5215 #2E6C15
monochromatic
#09051A #140B39 #27156C #3A1F9F #4C29D2

Accessibility & contrast

On white

14.89
#27156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27156C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27156C#FFFFFF#000000##FFFFFF
##27156C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #27156c;
/* rgb */ color: rgb(39, 21, 108);
/* oklch */ color: oklch(28.9% 0.139 282.8);
Tailwind
colors: {
  custom: {
    50: '#6b5597',
    500: '#27156c',
    950: '#000000',
  },
}
SCSS
$custom: #27156c;
$custom-light: #6b5597;
$custom-dark: #000000;
JSON
{
  "hex": "#27156c",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 252.414,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28896,
    "c": 0.13931,
    "h": 282.8
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#27156C
secondary
#8DA33A
accent
#EA3DC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #27156C

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

Preview Lab → · Contrast checker → · Palette generator →

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