#27155E#27155E

#27155E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.121 H 286.7°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#27155E
RGBrgb(39, 21, 94)
HSLhsl(255, 63%, 23%)
HSVhsv(255, 78%, 37%)
CMYKcmyk(58.5%, 77.7%, 0%, 63.1%)
CIE-LABlab(14.26, 29.73, -40.30)
CIE-LCHlch(14.26, 50.08, 306.41°)
OKLaboklab(27.4% 0.0348 -0.1159)
OKLCHoklch(27.4% 0.121 286.7)
XYZxyz(3.1246, 1.7756, 10.7656)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27155E #4C5E15
analogous
#15275E #27155E #4C155E
triadic
#27155E #5E2715 #155E27
tetradic
#27155E #5E1527 #4C5E15 #155E4C
square
#27155E #5E1527 #4C5E15 #155E4C
split-complementary
#27155E #5E4C15 #275E15
monochromatic
#0A0619 #120A2C #27155E #3C2090 #512BC2

Accessibility & contrast

On white

15.50
#27155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#27155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27155E
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27155E#FFFFFF#000000##FFFFFF
##27155E1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#0F2938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27155e;
/* rgb */ color: rgb(39, 21, 94);
/* oklch */ color: oklch(27.4% 0.121 286.7);
Tailwind
colors: {
  custom: {
    50: '#68548c',
    500: '#27155e',
    950: '#000000',
  },
}
SCSS
$custom: #27155e;
$custom-light: #68548c;
$custom-dark: #000000;
JSON
{
  "hex": "#27155e",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 254.795,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27401,
    "c": 0.12103,
    "h": 286.7
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#27155E
secondary
#7F9539
accent
#E741BE
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27155E

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

Preview Lab → · Contrast checker → · Palette generator →

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