#27175E#27175E

#27175E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.119 H 286.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#27175E
RGBrgb(39, 23, 94)
HSLhsl(254, 61%, 23%)
HSVhsv(254, 76%, 37%)
CMYKcmyk(58.5%, 75.5%, 0%, 63.1%)
CIE-LABlab(14.69, 28.54, -39.60)
CIE-LCHlch(14.69, 48.81, 305.77°)
OKLaboklab(27.71% 0.0329 -0.1139)
OKLCHoklch(27.71% 0.119 286.1)
XYZxyz(3.1629, 1.8521, 10.7783)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27175E #4E5E17
analogous
#172A5E #27175E #4A175E
triadic
#27175E #5E2717 #175E27
tetradic
#27175E #5E172A #4E5E17 #175E4A
square
#27175E #5E172A #4E5E17 #175E4A
split-complementary
#27175E #5E4A17 #2A5E17
monochromatic
#0A0619 #130B2D #27175E #3B238F #502FC0

Accessibility & contrast

On white

15.32
#27175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#27175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27175E
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27175E#FFFFFF#000000##FFFFFF
##27175E1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#0F2A38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #27175e;
/* rgb */ color: rgb(39, 23, 94);
/* oklch */ color: oklch(27.7% 0.119 286.1);
Tailwind
colors: {
  custom: {
    50: '#68558c',
    500: '#27175e',
    950: '#000000',
  },
}
SCSS
$custom: #27175e;
$custom-light: #68558c;
$custom-dark: #000000;
JSON
{
  "hex": "#27175e",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 253.521,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27705,
    "c": 0.11854,
    "h": 286.1
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#27175E
secondary
#81953C
accent
#E444C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #27175E

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

Preview Lab → · Contrast checker → · Palette generator →

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