#27126D#27126D

#27126D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.144 H 283.1°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#27126D
RGBrgb(39, 18, 109)
HSLhsl(254, 72%, 25%)
HSVhsv(254, 83%, 43%)
CMYKcmyk(64.2%, 83.5%, 0%, 57.3%)
CIE-LABlab(15.32, 36.17, -48.47)
CIE-LCHlch(15.32, 60.48, 306.73°)
OKLaboklab(28.63% 0.0326 -0.1398)
OKLCHoklch(28.63% 0.144 283.1)
XYZxyz(3.8125, 1.9678, 14.6440)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27126D #586D12
analogous
#122B6D #27126D #55126D
triadic
#27126D #6D2712 #126D27
tetradic
#27126D #6D122B #586D12 #126D55
square
#27126D #6D122B #586D12 #126D55
split-complementary
#27126D #6D5512 #2B6D12
monochromatic
#09041A #140938 #27126D #3A1BA2 #4D23D6

Accessibility & contrast

On white

15.07
#27126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#27126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27126D
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27126D#FFFFFF#000000##FFFFFF
##27126D1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002D40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #27126d;
/* rgb */ color: rgb(39, 18, 109);
/* oklch */ color: oklch(28.6% 0.144 283.1);
Tailwind
colors: {
  custom: {
    50: '#6c5398',
    500: '#27126d',
    950: '#000000',
  },
}
SCSS
$custom: #27126d;
$custom-light: #6c5398;
$custom-dark: #000000;
JSON
{
  "hex": "#27126d",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 253.846,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28629,
    "c": 0.14353,
    "h": 283.1
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#27126D
secondary
#8BA437
accent
#EE39C5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #27126D

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

Preview Lab → · Contrast checker → · Palette generator →

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