#27157A#27157A

#27157A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.157 H 279.8°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#27157A
RGBrgb(39, 21, 122)
HSLhsl(251, 71%, 28%)
HSVhsv(251, 83%, 48%)
CMYKcmyk(68%, 82.8%, 0%, 52.2%)
CIE-LABlab(17.33, 38.76, -53.55)
CIE-LCHlch(17.33, 66.11, 305.90°)
OKLaboklab(30.47% 0.0266 -0.1546)
OKLCHoklch(30.47% 0.157 279.8)
XYZxyz(4.6166, 2.3724, 18.6232)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27157A #687A15
analogous
#15357A #27157A #59157A
triadic
#27157A #7A2715 #157A27
tetradic
#27157A #7A1535 #687A15 #157A59
square
#27157A #7A1535 #687A15 #157A59
split-complementary
#27157A #7A5915 #357A15
monochromatic
#08041A #160C46 #27157A #381EAE #4D2EDB

Accessibility & contrast

On white

14.24
#27157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#27157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27157A
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27157A#FFFFFF#000000##FFFFFF
##27157A1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27157a;
/* rgb */ color: rgb(39, 21, 122);
/* oklch */ color: oklch(30.5% 0.157 279.8);
Tailwind
colors: {
  custom: {
    50: '#6e56a2',
    500: '#27157a',
    950: '#000000',
  },
}
SCSS
$custom: #27157a;
$custom-light: #6e56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27157a",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 250.693,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30471,
    "c": 0.15688,
    "h": 279.8
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#27157A
secondary
#9BAF3B
accent
#ED3ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27157A

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

Preview Lab → · Contrast checker → · Palette generator →

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