#27175C#27175C

#27175C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.116 H 286.7°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#27175C
RGBrgb(39, 23, 92)
HSLhsl(254, 60%, 23%)
HSVhsv(254, 75%, 36%)
CMYKcmyk(57.6%, 75%, 0%, 63.9%)
CIE-LABlab(14.49, 27.87, -38.59)
CIE-LCHlch(14.49, 47.60, 305.84°)
OKLaboklab(27.5% 0.0333 -0.1109)
OKLCHoklch(27.5% 0.116 286.7)
XYZxyz(3.0743, 1.8167, 10.3118)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27175C #4C5C17
analogous
#172A5C #27175C #49175C
triadic
#27175C #5C2717 #175C27
tetradic
#27175C #5C172A #4C5C17 #175C49
square
#27175C #5C172A #4C5C17 #175C49
split-complementary
#27175C #5C4917 #2A5C17
monochromatic
#0A0618 #120B2B #27175C #3C238D #512FBE

Accessibility & contrast

On white

15.40
#27175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27175C
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27175C#FFFFFF#000000##FFFFFF
##27175C1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#112937
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #27175c;
/* rgb */ color: rgb(39, 23, 92);
/* oklch */ color: oklch(27.5% 0.116 286.7);
Tailwind
colors: {
  custom: {
    50: '#68558b',
    500: '#27175c',
    950: '#000000',
  },
}
SCSS
$custom: #27175c;
$custom-light: #68558b;
$custom-dark: #000000;
JSON
{
  "hex": "#27175c",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 253.913,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27504,
    "c": 0.11581,
    "h": 286.7
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27175C

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

Preview Lab → · Contrast checker → · Palette generator →

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