#27157D#27157D

#27157D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.161 H 279.2°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#27157D
RGBrgb(39, 21, 125)
HSLhsl(250, 71%, 29%)
HSVhsv(250, 83%, 49%)
CMYKcmyk(68.8%, 83.2%, 0%, 51%)
CIE-LABlab(17.68, 39.71, -54.89)
CIE-LCHlch(17.68, 67.74, 305.88°)
OKLaboklab(30.82% 0.0256 -0.1585)
OKLCHoklch(30.82% 0.161 279.2)
XYZxyz(4.8054, 2.4479, 19.6173)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27157D #6B7D15
analogous
#15377D #27157D #5B157D
triadic
#27157D #7D2715 #157D27
tetradic
#27157D #7D1537 #6B7D15 #157D5B
square
#27157D #7D1537 #6B7D15 #157D5B
split-complementary
#27157D #7D5B15 #377D15
monochromatic
#08041A #170C49 #27157D #371EB1 #4E30DC

Accessibility & contrast

On white

14.10
#27157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27157D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27157D#FFFFFF#000000##FFFFFF
##27157D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27157d;
/* rgb */ color: rgb(39, 21, 125);
/* oklch */ color: oklch(30.8% 0.161 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f56a4',
    500: '#27157d',
    950: '#000000',
  },
}
SCSS
$custom: #27157d;
$custom-light: #6f56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27157d",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 250.385,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30816,
    "c": 0.16056,
    "h": 279.2
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27157D

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

Preview Lab → · Contrast checker → · Palette generator →

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