#27155B#27155B

#27155B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 287.7°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#27155B
RGBrgb(39, 21, 91)
HSLhsl(255, 63%, 22%)
HSVhsv(255, 77%, 36%)
CMYKcmyk(57.1%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.96, 28.75, -38.79)
CIE-LCHlch(13.96, 48.28, 306.54°)
OKLaboklab(27.09% 0.0355 -0.1115)
OKLCHoklch(27.09% 0.117 287.7)
XYZxyz(2.9926, 1.7228, 10.0704)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27155B #495B15
analogous
#15265B #27155B #4A155B
triadic
#27155B #5B2715 #155B27
tetradic
#27155B #5B1526 #495B15 #155B4A
square
#27155B #5B1526 #495B15 #155B4A
split-complementary
#27155B #5B4A15 #265B15
monochromatic
#0B0619 #120A29 #27155B #3C208D #522CBE

Accessibility & contrast

On white

15.62
#27155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#27155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27155B
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27155B#FFFFFF#000000##FFFFFF
##27155B1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#122836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27155b;
/* rgb */ color: rgb(39, 21, 91);
/* oklch */ color: oklch(27.1% 0.117 287.7);
Tailwind
colors: {
  custom: {
    50: '#68548a',
    500: '#27155b',
    950: '#000000',
  },
}
SCSS
$custom: #27155b;
$custom-light: #68548a;
$custom-dark: #000000;
JSON
{
  "hex": "#27155b",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 255.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27093,
    "c": 0.11701,
    "h": 287.7
  },
  "luminance": 0.01723
}

Semantic roles & 50–950 ramp

primary
#27155B
secondary
#7C9239
accent
#E642BC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27155B

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

Preview Lab → · Contrast checker → · Palette generator →

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