#27165D#27165D

#27165D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.118 H 286.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#27165D
RGBrgb(39, 22, 93)
HSLhsl(254, 62%, 23%)
HSVhsv(254, 76%, 36%)
CMYKcmyk(58.1%, 76.3%, 0%, 63.5%)
CIE-LABlab(14.37, 28.81, -39.45)
CIE-LCHlch(14.37, 48.85, 306.14°)
OKLaboklab(27.45% 0.0341 -0.1134)
OKLCHoklch(27.45% 0.118 286.7)
XYZxyz(3.0988, 1.7953, 10.5370)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27165D #4C5D16
analogous
#16295D #27165D #4A165D
triadic
#27165D #5D2716 #165D27
tetradic
#27165D #5D1629 #4C5D16 #165D4A
square
#27165D #5D1629 #4C5D16 #165D4A
split-complementary
#27165D #5D4A16 #295D16
monochromatic
#0A0619 #120A2C #27165D #3C228E #512DC0

Accessibility & contrast

On white

15.45
#27165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27165D
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27165D#FFFFFF#000000##FFFFFF
##27165D1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#102938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27165d;
/* rgb */ color: rgb(39, 22, 93);
/* oklch */ color: oklch(27.4% 0.118 286.7);
Tailwind
colors: {
  custom: {
    50: '#68558c',
    500: '#27165d',
    950: '#000000',
  },
}
SCSS
$custom: #27165d;
$custom-light: #68558c;
$custom-dark: #000000;
JSON
{
  "hex": "#27165d",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 254.366,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27449,
    "c": 0.11846,
    "h": 286.7
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#27165D
secondary
#7F943B
accent
#E543BE
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27165D

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

Preview Lab → · Contrast checker → · Palette generator →

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