#27166A#27166A

#27166A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.136 H 283.1°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#27166A
RGBrgb(39, 22, 106)
HSLhsl(252, 66%, 25%)
HSVhsv(252, 79%, 42%)
CMYKcmyk(63.2%, 79.2%, 0%, 58.4%)
CIE-LABlab(15.72, 33.08, -45.84)
CIE-LCHlch(15.72, 56.53, 305.82°)
OKLaboklab(28.81% 0.0308 -0.1321)
OKLCHoklch(28.81% 0.136 283.1)
XYZxyz(3.7243, 2.0455, 13.8314)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27166A #596A16
analogous
#162F6A #27166A #51166A
triadic
#27166A #6A2716 #166A27
tetradic
#27166A #6A162F #596A16 #166A51
square
#27166A #6A162F #596A16 #166A51
split-complementary
#27166A #6A5116 #2F6A16
monochromatic
#090519 #140B37 #27166A #3A219D #4C2BCF

Accessibility & contrast

On white

14.90
#27166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#27166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27166A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27166A#FFFFFF#000000##FFFFFF
##27166A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #27166a;
/* rgb */ color: rgb(39, 22, 106);
/* oklch */ color: oklch(28.8% 0.136 283.1);
Tailwind
colors: {
  custom: {
    50: '#6b5596',
    500: '#27166a',
    950: '#000000',
  },
}
SCSS
$custom: #27166a;
$custom-light: #6b5596;
$custom-dark: #000000;
JSON
{
  "hex": "#27166a",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 252.143,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28814,
    "c": 0.13567,
    "h": 283.1
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#27166A
secondary
#8CA03B
accent
#E93FC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27166A

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

Preview Lab → · Contrast checker → · Palette generator →

#27166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva