#27155C#27155C

#27155C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.118 H 287.3°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#27155C
RGBrgb(39, 21, 92)
HSLhsl(255, 63%, 22%)
HSVhsv(255, 77%, 36%)
CMYKcmyk(57.6%, 77.2%, 0%, 63.9%)
CIE-LABlab(14.06, 29.08, -39.30)
CIE-LCHlch(14.06, 48.89, 306.50°)
OKLaboklab(27.2% 0.0353 -0.113)
OKLCHoklch(27.2% 0.118 287.3)
XYZxyz(3.0361, 1.7402, 10.2991)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27155C #4A5C15
analogous
#15275C #27155C #4B155C
triadic
#27155C #5C2715 #155C27
tetradic
#27155C #5C1527 #4A5C15 #155C4B
square
#27155C #5C1527 #4A5C15 #155C4B
split-complementary
#27155C #5C4B15 #275C15
monochromatic
#0B0619 #120A2A #27155C #3C208E #512CC0

Accessibility & contrast

On white

15.58
#27155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#27155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27155C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27155C#FFFFFF#000000##FFFFFF
##27155C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#112837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27155c;
/* rgb */ color: rgb(39, 21, 92);
/* oklch */ color: oklch(27.2% 0.118 287.3);
Tailwind
colors: {
  custom: {
    50: '#68548b',
    500: '#27155c',
    950: '#000000',
  },
}
SCSS
$custom: #27155c;
$custom-light: #68548b;
$custom-dark: #000000;
JSON
{
  "hex": "#27155c",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 255.211,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27195,
    "c": 0.11836,
    "h": 287.3
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#27155C
secondary
#7D9339
accent
#E642BC
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27155C

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

Preview Lab → · Contrast checker → · Palette generator →

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