#27155F#27155F

#27155F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.122 H 286.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#27155F
RGBrgb(39, 21, 95)
HSLhsl(255, 64%, 23%)
HSVhsv(255, 78%, 37%)
CMYKcmyk(58.9%, 77.9%, 0%, 62.7%)
CIE-LABlab(14.37, 30.06, -40.80)
CIE-LCHlch(14.37, 50.68, 306.38°)
OKLaboklab(27.51% 0.0345 -0.1174)
OKLCHoklch(27.51% 0.122 286.4)
XYZxyz(3.1698, 1.7937, 11.0034)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27155F #4D5F15
analogous
#15285F #27155F #4C155F
triadic
#27155F #5F2715 #155F27
tetradic
#27155F #5F1528 #4D5F15 #155F4C
square
#27155F #5F1528 #4D5F15 #155F4C
split-complementary
#27155F #5F4C15 #285F15
monochromatic
#0A0619 #120A2D #27155F #3C2091 #502BC3

Accessibility & contrast

On white

15.45
#27155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27155F
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27155F#FFFFFF#000000##FFFFFF
##27155F1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#0E2938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27155f;
/* rgb */ color: rgb(39, 21, 95);
/* oklch */ color: oklch(27.5% 0.122 286.4);
Tailwind
colors: {
  custom: {
    50: '#68548d',
    500: '#27155f',
    950: '#000000',
  },
}
SCSS
$custom: #27155f;
$custom-light: #68548d;
$custom-dark: #000000;
JSON
{
  "hex": "#27155f",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 254.595,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27505,
    "c": 0.12237,
    "h": 286.4
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#27155F
secondary
#80963A
accent
#E741BE
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27155F

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

Preview Lab → · Contrast checker → · Palette generator →

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