#27176A#27176A

#27176A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.135 H 282.9°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#27176A
RGBrgb(39, 23, 106)
HSLhsl(252, 64%, 25%)
HSVhsv(252, 78%, 42%)
CMYKcmyk(63.2%, 78.3%, 0%, 58.4%)
CIE-LABlab(15.92, 32.52, -45.51)
CIE-LCHlch(15.92, 55.93, 305.54°)
OKLaboklab(28.96% 0.03 -0.1312)
OKLCHoklch(28.96% 0.135 282.9)
XYZxyz(3.7438, 2.0845, 13.8379)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27176A #5A6A17
analogous
#17316A #27176A #50176A
triadic
#27176A #6A2717 #176A27
tetradic
#27176A #6A1731 #5A6A17 #176A50
square
#27176A #6A1731 #5A6A17 #176A50
split-complementary
#27176A #6A5017 #316A17
monochromatic
#090519 #140C38 #27176A #3A229C #4C2DCF

Accessibility & contrast

On white

14.82
#27176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#27176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27176A
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27176A#FFFFFF#000000##FFFFFF
##27176A1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #27176a;
/* rgb */ color: rgb(39, 23, 106);
/* oklch */ color: oklch(29.0% 0.135 282.9);
Tailwind
colors: {
  custom: {
    50: '#6b5696',
    500: '#27176a',
    950: '#000000',
  },
}
SCSS
$custom: #27176a;
$custom-light: #6b5696;
$custom-dark: #000000;
JSON
{
  "hex": "#27176a",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 251.566,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28955,
    "c": 0.13457,
    "h": 282.9
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#27176A
secondary
#8DA03D
accent
#E740C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27176A

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

Preview Lab → · Contrast checker → · Palette generator →

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