#27166D#27166D

#27166D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.140 H 282.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#27166D
RGBrgb(39, 22, 109)
HSLhsl(252, 66%, 26%)
HSVhsv(252, 80%, 43%)
CMYKcmyk(64.2%, 79.8%, 0%, 57.3%)
CIE-LABlab(16.05, 34.06, -47.27)
CIE-LCHlch(16.05, 58.26, 305.78°)
OKLaboklab(29.14% 0.0299 -0.1363)
OKLCHoklch(29.14% 0.14 282.4)
XYZxyz(3.8831, 2.1090, 14.6675)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27166D #5C6D16
analogous
#16306D #27166D #52166D
triadic
#27166D #6D2716 #166D27
tetradic
#27166D #6D1630 #5C6D16 #166D52
square
#27166D #6D1630 #5C6D16 #166D52
split-complementary
#27166D #6D5216 #306D16
monochromatic
#090519 #150C3A #27166D #3920A0 #4B2BD3

Accessibility & contrast

On white

14.77
#27166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#27166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27166D
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27166D#FFFFFF#000000##FFFFFF
##27166D1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #27166d;
/* rgb */ color: rgb(39, 22, 109);
/* oklch */ color: oklch(29.1% 0.140 282.4);
Tailwind
colors: {
  custom: {
    50: '#6b5698',
    500: '#27166d',
    950: '#000000',
  },
}
SCSS
$custom: #27166d;
$custom-light: #6b5698;
$custom-dark: #000000;
JSON
{
  "hex": "#27166d",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 251.724,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2914,
    "c": 0.13955,
    "h": 282.4
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#27166D
secondary
#8FA33C
accent
#E93EC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #27166D

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

Preview Lab → · Contrast checker → · Palette generator →

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