#27115E#27115E

#27115E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.126 H 287.7°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#27115E
RGBrgb(39, 17, 94)
HSLhsl(257, 69%, 22%)
HSVhsv(257, 82%, 37%)
CMYKcmyk(58.5%, 81.9%, 0%, 63.1%)
CIE-LABlab(13.47, 31.97, -41.60)
CIE-LCHlch(13.47, 52.47, 307.54°)
OKLaboklab(26.85% 0.0382 -0.1197)
OKLCHoklch(26.85% 0.126 287.7)
XYZxyz(3.0569, 1.6402, 10.7430)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27115E #485E11
analogous
#11225E #27115E #4E115E
triadic
#27115E #5E2711 #115E27
tetradic
#27115E #5E1122 #485E11 #115E4E
square
#27115E #5E1122 #485E11 #115E4E
split-complementary
#27115E #5E4E11 #225E11
monochromatic
#0B051A #11082A #27115E #3D1A92 #5224C6

Accessibility & contrast

On white

15.81
#27115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#27115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27115E
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27115E#FFFFFF#000000##FFFFFF
##27115E1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#102737
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #27115e;
/* rgb */ color: rgb(39, 17, 94);
/* oklch */ color: oklch(26.8% 0.126 287.7);
Tailwind
colors: {
  custom: {
    50: '#69528c',
    500: '#27115e',
    950: '#000000',
  },
}
SCSS
$custom: #27115e;
$custom-light: #69528c;
$custom-dark: #000000;
JSON
{
  "hex": "#27115e",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 257.143,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26845,
    "c": 0.12566,
    "h": 287.7
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#27115E
secondary
#7B9734
accent
#EC3CBA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #27115E

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

Preview Lab → · Contrast checker → · Palette generator →

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