#27186A#27186A

#27186A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.133 H 282.6°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#27186A
RGBrgb(39, 24, 106)
HSLhsl(251, 63%, 25%)
HSVhsv(251, 77%, 42%)
CMYKcmyk(63.2%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.13, 31.94, -45.17)
CIE-LCHlch(16.13, 55.32, 305.26°)
OKLaboklab(29.1% 0.0292 -0.1302)
OKLCHoklch(29.1% 0.133 282.6)
XYZxyz(3.7640, 2.1250, 13.8447)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27186A #5B6A18
analogous
#18326A #27186A #50186A
triadic
#27186A #6A2718 #186A27
tetradic
#27186A #6A1832 #5B6A18 #186A50
square
#27186A #6A1832 #5B6A18 #186A50
split-complementary
#27186A #6A5018 #326A18
monochromatic
#090619 #150D38 #27186A #39239C #4C2FCE

Accessibility & contrast

On white

14.74
#27186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#27186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27186A
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27186A#FFFFFF#000000##FFFFFF
##27186A1.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27186a;
/* rgb */ color: rgb(39, 24, 106);
/* oklch */ color: oklch(29.1% 0.133 282.6);
Tailwind
colors: {
  custom: {
    50: '#6b5795',
    500: '#27186a',
    950: '#000000',
  },
}
SCSS
$custom: #27186a;
$custom-light: #6b5795;
$custom-dark: #000000;
JSON
{
  "hex": "#27186a",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 250.976,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.291,
    "c": 0.13344,
    "h": 282.6
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#27186A
secondary
#8EA03E
accent
#E642C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27186A

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

Preview Lab → · Contrast checker → · Palette generator →

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