#27175A#27175A

#27175A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.113 H 287.4°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#27175A
RGBrgb(39, 23, 90)
HSLhsl(254, 59%, 22%)
HSVhsv(254, 74%, 35%)
CMYKcmyk(56.7%, 74.4%, 0%, 64.7%)
CIE-LABlab(14.30, 27.20, -37.56)
CIE-LCHlch(14.30, 46.38, 305.91°)
OKLaboklab(27.31% 0.0337 -0.1079)
OKLCHoklch(27.31% 0.113 287.4)
XYZxyz(2.9880, 1.7822, 9.8574)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27175A #4A5A17
analogous
#17295A #27175A #49175A
triadic
#27175A #5A2717 #175A27
tetradic
#27175A #5A1729 #4A5A17 #175A49
square
#27175A #5A1729 #4A5A17 #175A49
split-complementary
#27175A #5A4917 #295A17
monochromatic
#0B0618 #120B29 #27175A #3C238B #5130BB

Accessibility & contrast

On white

15.48
#27175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#27175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27175A
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27175A#FFFFFF#000000##FFFFFF
##27175A1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#132836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27175a;
/* rgb */ color: rgb(39, 23, 90);
/* oklch */ color: oklch(27.3% 0.113 287.4);
Tailwind
colors: {
  custom: {
    50: '#675589',
    500: '#27175a',
    950: '#000000',
  },
}
SCSS
$custom: #27175a;
$custom-light: #675589;
$custom-dark: #000000;
JSON
{
  "hex": "#27175a",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 254.328,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27305,
    "c": 0.11306,
    "h": 287.4
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#27175A
secondary
#7D913C
accent
#E245BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #27175A

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

Preview Lab → · Contrast checker → · Palette generator →

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