#27126F#27126F

#27126F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.146 H 282.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#27126F
RGBrgb(39, 18, 111)
HSLhsl(254, 72%, 25%)
HSVhsv(254, 84%, 44%)
CMYKcmyk(64.9%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.55, 36.79, -49.40)
CIE-LCHlch(15.55, 61.60, 306.68°)
OKLaboklab(28.86% 0.0319 -0.1425)
OKLCHoklch(28.86% 0.146 282.6)
XYZxyz(3.9214, 2.0114, 15.2174)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27126F #5A6F12
analogous
#122C6F #27126F #55126F
triadic
#27126F #6F2712 #126F27
tetradic
#27126F #6F122C #5A6F12 #126F55
square
#27126F #6F122C #5A6F12 #126F55
split-complementary
#27126F #6F5512 #2C6F12
monochromatic
#09041A #14093A #27126F #3A1BA4 #4C23D8

Accessibility & contrast

On white

14.97
#27126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#27126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27126F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27126F#FFFFFF#000000##FFFFFF
##27126F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #27126f;
/* rgb */ color: rgb(39, 18, 111);
/* oklch */ color: oklch(28.9% 0.146 282.6);
Tailwind
colors: {
  custom: {
    50: '#6c5499',
    500: '#27126f',
    950: '#000000',
  },
}
SCSS
$custom: #27126f;
$custom-light: #6c5499;
$custom-dark: #000000;
JSON
{
  "hex": "#27126f",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 253.548,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28857,
    "c": 0.14601,
    "h": 282.6
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#27126F
secondary
#8DA637
accent
#EF39C6
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #27126F

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

Preview Lab → · Contrast checker → · Palette generator →

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