#27175B#27175B

#27175B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.114 H 287.0°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#27175B
RGBrgb(39, 23, 91)
HSLhsl(254, 60%, 22%)
HSVhsv(254, 75%, 36%)
CMYKcmyk(57.1%, 74.7%, 0%, 64.3%)
CIE-LABlab(14.40, 27.54, -38.08)
CIE-LCHlch(14.40, 46.99, 305.87°)
OKLaboklab(27.4% 0.0335 -0.1094)
OKLCHoklch(27.4% 0.114 287)
XYZxyz(3.0309, 1.7993, 10.0831)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27175B #4B5B17
analogous
#17295B #27175B #49175B
triadic
#27175B #5B2717 #175B27
tetradic
#27175B #5B1729 #4B5B17 #175B49
square
#27175B #5B1729 #4B5B17 #175B49
split-complementary
#27175B #5B4917 #295B17
monochromatic
#0A0618 #120B2A #27175B #3C238C #5130BD

Accessibility & contrast

On white

15.44
#27175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27175B
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27175B#FFFFFF#000000##FFFFFF
##27175B1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#122937
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #27175b;
/* rgb */ color: rgb(39, 23, 91);
/* oklch */ color: oklch(27.4% 0.114 287.0);
Tailwind
colors: {
  custom: {
    50: '#68558a',
    500: '#27175b',
    950: '#000000',
  },
}
SCSS
$custom: #27175b;
$custom-light: #68558a;
$custom-dark: #000000;
JSON
{
  "hex": "#27175b",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 254.118,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27404,
    "c": 0.11443,
    "h": 287
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#27175B
secondary
#7E923C
accent
#E345BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #27175B

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

Preview Lab → · Contrast checker → · Palette generator →

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