#27157B#27157B

#27157B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.158 H 279.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#27157B
RGBrgb(39, 21, 123)
HSLhsl(251, 71%, 28%)
HSVhsv(251, 83%, 48%)
CMYKcmyk(68.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.45, 39.08, -54.00)
CIE-LCHlch(17.45, 66.65, 305.89°)
OKLaboklab(30.59% 0.0263 -0.1559)
OKLCHoklch(30.59% 0.158 279.6)
XYZxyz(4.6789, 2.3973, 18.9512)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27157B #697B15
analogous
#15367B #27157B #5A157B
triadic
#27157B #7B2715 #157B27
tetradic
#27157B #7B1536 #697B15 #157B5A
square
#27157B #7B1536 #697B15 #157B5A
split-complementary
#27157B #7B5A15 #367B15
monochromatic
#08041A #160C47 #27157B #381EAF #4D2FDB

Accessibility & contrast

On white

14.19
#27157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#27157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27157B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27157B#FFFFFF#000000##FFFFFF
##27157B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27157b;
/* rgb */ color: rgb(39, 21, 123);
/* oklch */ color: oklch(30.6% 0.158 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f56a2',
    500: '#27157b',
    950: '#000000',
  },
}
SCSS
$custom: #27157b;
$custom-light: #6f56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27157b",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 250.588,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30586,
    "c": 0.15811,
    "h": 279.6
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#27157B
secondary
#9CB03B
accent
#EE3ACE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27157B

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

Preview Lab → · Contrast checker → · Palette generator →

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