#27157E#27157E

#27157E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.162 H 279.0°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#27157E
RGBrgb(39, 21, 126)
HSLhsl(250, 71%, 29%)
HSVhsv(250, 83%, 49%)
CMYKcmyk(69%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.80, 40.02, -55.33)
CIE-LCHlch(17.80, 68.29, 305.88°)
OKLaboklab(30.93% 0.0253 -0.1598)
OKLCHoklch(30.93% 0.162 279)
XYZxyz(4.8696, 2.4736, 19.9555)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27157E #6C7E15
analogous
#15387E #27157E #5C157E
triadic
#27157E #7E2715 #157E27
tetradic
#27157E #7E1538 #6C7E15 #157E5C
square
#27157E #7E1538 #6C7E15 #157E5C
split-complementary
#27157E #7E5C15 #387E15
monochromatic
#08041A #170C4A #27157E #371EB2 #4E31DD

Accessibility & contrast

On white

14.05
#27157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#27157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27157E
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27157E#FFFFFF#000000##FFFFFF
##27157E1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #27157e;
/* rgb */ color: rgb(39, 21, 126);
/* oklch */ color: oklch(30.9% 0.162 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f56a5',
    500: '#27157e',
    950: '#000000',
  },
}
SCSS
$custom: #27157e;
$custom-light: #6f56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27157e",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 250.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30932,
    "c": 0.16178,
    "h": 279
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#27157E
secondary
#9FB33C
accent
#EE3ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27157E

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

Preview Lab → · Contrast checker → · Palette generator →

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