#27176D#27176D

#27176D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.138 H 282.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#27176D
RGBrgb(39, 23, 109)
HSLhsl(251, 65%, 26%)
HSVhsv(251, 79%, 43%)
CMYKcmyk(64.2%, 78.9%, 0%, 57.3%)
CIE-LABlab(16.25, 33.51, -46.94)
CIE-LCHlch(16.25, 57.67, 305.52°)
OKLaboklab(29.28% 0.0292 -0.1354)
OKLCHoklch(29.28% 0.138 282.2)
XYZxyz(3.9026, 2.1480, 14.6740)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27176D #5D6D17
analogous
#17326D #27176D #52176D
triadic
#27176D #6D2717 #176D27
tetradic
#27176D #6D1732 #5D6D17 #176D52
square
#27176D #6D1732 #5D6D17 #176D52
split-complementary
#27176D #6D5217 #326D17
monochromatic
#090519 #150C3A #27176D #3922A0 #4B2CD2

Accessibility & contrast

On white

14.69
#27176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#27176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27176D
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27176D#FFFFFF#000000##FFFFFF
##27176D1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #27176d;
/* rgb */ color: rgb(39, 23, 109);
/* oklch */ color: oklch(29.3% 0.138 282.2);
Tailwind
colors: {
  custom: {
    50: '#6b5698',
    500: '#27176d',
    950: '#000000',
  },
}
SCSS
$custom: #27176d;
$custom-light: #6b5698;
$custom-dark: #000000;
JSON
{
  "hex": "#27176d",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 251.163,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29278,
    "c": 0.13848,
    "h": 282.2
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#27176D
secondary
#90A33D
accent
#E840C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #27176D

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

Preview Lab → · Contrast checker → · Palette generator →

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