#27166C#27166C

#27166C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 282.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#27166C
RGBrgb(39, 22, 108)
HSLhsl(252, 66%, 25%)
HSVhsv(252, 80%, 42%)
CMYKcmyk(63.9%, 79.6%, 0%, 57.6%)
CIE-LABlab(15.94, 33.74, -46.79)
CIE-LCHlch(15.94, 57.69, 305.79°)
OKLaboklab(29.03% 0.0302 -0.1349)
OKLCHoklch(29.03% 0.138 282.6)
XYZxyz(3.8295, 2.0876, 14.3856)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27166C #5B6C16
analogous
#16306C #27166C #52166C
triadic
#27166C #6C2716 #166C27
tetradic
#27166C #6C1630 #5B6C16 #166C52
square
#27166C #6C1630 #5B6C16 #166C52
split-complementary
#27166C #6C5216 #306C16
monochromatic
#090519 #150C39 #27166C #39209F #4C2BD2

Accessibility & contrast

On white

14.81
#27166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27166C
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27166C#FFFFFF#000000##FFFFFF
##27166C1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #27166c;
/* rgb */ color: rgb(39, 22, 108);
/* oklch */ color: oklch(29.0% 0.138 282.6);
Tailwind
colors: {
  custom: {
    50: '#6b5697',
    500: '#27166c',
    950: '#000000',
  },
}
SCSS
$custom: #27166c;
$custom-light: #6b5697;
$custom-dark: #000000;
JSON
{
  "hex": "#27166c",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 251.86,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29031,
    "c": 0.13826,
    "h": 282.6
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#27166C
secondary
#8EA23C
accent
#E93FC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #27166C

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

Preview Lab → · Contrast checker → · Palette generator →

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