#27156B#27156B

#27156B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.138 H 283.1°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#27156B
RGBrgb(39, 21, 107)
HSLhsl(253, 67%, 25%)
HSVhsv(253, 80%, 42%)
CMYKcmyk(63.6%, 80.4%, 0%, 58%)
CIE-LABlab(15.64, 33.96, -46.64)
CIE-LCHlch(15.64, 57.69, 306.06°)
OKLaboklab(28.79% 0.0312 -0.1345)
OKLCHoklch(28.79% 0.138 283.1)
XYZxyz(3.7579, 2.0289, 14.1007)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27156B #596B15
analogous
#152E6B #27156B #52156B
triadic
#27156B #6B2715 #156B27
tetradic
#27156B #6B152E #596B15 #156B52
square
#27156B #6B152E #596B15 #156B52
split-complementary
#27156B #6B5215 #2E6B15
monochromatic
#09051A #140B38 #27156B #3A1F9E #4C29D1

Accessibility & contrast

On white

14.94
#27156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27156B
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27156B#FFFFFF#000000##FFFFFF
##27156B1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #27156b;
/* rgb */ color: rgb(39, 21, 107);
/* oklch */ color: oklch(28.8% 0.138 283.1);
Tailwind
colors: {
  custom: {
    50: '#6b5596',
    500: '#27156b',
    950: '#000000',
  },
}
SCSS
$custom: #27156b;
$custom-light: #6b5596;
$custom-dark: #000000;
JSON
{
  "hex": "#27156b",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 252.558,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28786,
    "c": 0.13803,
    "h": 283.1
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#27156B
secondary
#8CA23A
accent
#EA3EC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27156B

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

Preview Lab → · Contrast checker → · Palette generator →

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