#27126A#27126A

#27126A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.140 H 283.9°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#27126A
RGBrgb(39, 18, 106)
HSLhsl(254, 71%, 24%)
HSVhsv(254, 83%, 42%)
CMYKcmyk(63.2%, 83%, 0%, 58.4%)
CIE-LABlab(14.98, 35.23, -47.07)
CIE-LCHlch(14.98, 58.79, 306.81°)
OKLaboklab(28.29% 0.0336 -0.1357)
OKLCHoklch(28.29% 0.14 283.9)
XYZxyz(3.6537, 1.9043, 13.8079)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27126A #556A12
analogous
#12296A #27126A #53126A
triadic
#27126A #6A2712 #126A27
tetradic
#27126A #6A1229 #556A12 #126A53
square
#27126A #6A1229 #556A12 #126A53
split-complementary
#27126A #6A5312 #296A12
monochromatic
#0A041A #140936 #27126A #3A1B9E #4D24D3

Accessibility & contrast

On white

15.21
#27126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#27126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27126A
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27126A#FFFFFF#000000##FFFFFF
##27126A1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#002C3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #27126a;
/* rgb */ color: rgb(39, 18, 106);
/* oklch */ color: oklch(28.3% 0.140 283.9);
Tailwind
colors: {
  custom: {
    50: '#6b5396',
    500: '#27126a',
    950: '#000000',
  },
}
SCSS
$custom: #27126a;
$custom-light: #6b5396;
$custom-dark: #000000;
JSON
{
  "hex": "#27126a",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 254.318,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28291,
    "c": 0.1398,
    "h": 283.9
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#27126A
secondary
#88A236
accent
#EE3AC3
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27126A

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

Preview Lab → · Contrast checker → · Palette generator →

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