#27165E#27165E

#27165E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.120 H 286.4°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#27165E
RGBrgb(39, 22, 94)
HSLhsl(254, 62%, 23%)
HSVhsv(254, 77%, 37%)
CMYKcmyk(58.5%, 76.6%, 0%, 63.1%)
CIE-LABlab(14.47, 29.14, -39.96)
CIE-LCHlch(14.47, 49.45, 306.10°)
OKLaboklab(27.55% 0.0338 -0.1149)
OKLCHoklch(27.55% 0.12 286.4)
XYZxyz(3.1434, 1.8131, 10.7718)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27165E #4D5E16
analogous
#16295E #27165E #4B165E
triadic
#27165E #5E2716 #165E27
tetradic
#27165E #5E1629 #4D5E16 #165E4B
square
#27165E #5E1629 #4D5E16 #165E4B
split-complementary
#27165E #5E4B16 #295E16
monochromatic
#0A0619 #120A2C #27165E #3C2290 #502DC1

Accessibility & contrast

On white

15.41
#27165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#27165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27165E
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27165E#FFFFFF#000000##FFFFFF
##27165E1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#0F2938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #27165e;
/* rgb */ color: rgb(39, 22, 94);
/* oklch */ color: oklch(27.6% 0.120 286.4);
Tailwind
colors: {
  custom: {
    50: '#68558c',
    500: '#27165e',
    950: '#000000',
  },
}
SCSS
$custom: #27165e;
$custom-light: #68558c;
$custom-dark: #000000;
JSON
{
  "hex": "#27165e",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 254.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27551,
    "c": 0.1198,
    "h": 286.4
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#27165E
secondary
#80953B
accent
#E543BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27165E

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

Preview Lab → · Contrast checker → · Palette generator →

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