#27126C#27126C

#27126C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.142 H 283.4°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#27126C
RGBrgb(39, 18, 108)
HSLhsl(254, 71%, 25%)
HSVhsv(254, 83%, 42%)
CMYKcmyk(63.9%, 83.3%, 0%, 57.6%)
CIE-LABlab(15.20, 35.85, -48.01)
CIE-LCHlch(15.20, 59.92, 306.75°)
OKLaboklab(28.52% 0.0329 -0.1384)
OKLCHoklch(28.52% 0.142 283.4)
XYZxyz(3.7589, 1.9464, 14.3621)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27126C #576C12
analogous
#122A6C #27126C #54126C
triadic
#27126C #6C2712 #126C27
tetradic
#27126C #6C122A #576C12 #126C54
square
#27126C #6C122A #576C12 #126C54
split-complementary
#27126C #6C5412 #2A6C12
monochromatic
#09041A #140938 #27126C #3A1BA0 #4D23D5

Accessibility & contrast

On white

15.11
#27126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27126C
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27126C#FFFFFF#000000##FFFFFF
##27126C1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #27126c;
/* rgb */ color: rgb(39, 18, 108);
/* oklch */ color: oklch(28.5% 0.142 283.4);
Tailwind
colors: {
  custom: {
    50: '#6c5397',
    500: '#27126c',
    950: '#000000',
  },
}
SCSS
$custom: #27126c;
$custom-light: #6c5397;
$custom-dark: #000000;
JSON
{
  "hex": "#27126c",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 254,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28516,
    "c": 0.14229,
    "h": 283.4
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

primary
#27126C
secondary
#8AA336
accent
#EE3AC4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #27126C

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

Preview Lab → · Contrast checker → · Palette generator →

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