#27147E#27147E

#27147E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.163 H 279.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#27147E
RGBrgb(39, 20, 126)
HSLhsl(251, 73%, 29%)
HSVhsv(251, 84%, 49%)
CMYKcmyk(69%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.63, 40.50, -55.60)
CIE-LCHlch(17.63, 68.79, 306.07°)
OKLaboklab(30.82% 0.0258 -0.1606)
OKLCHoklch(30.82% 0.163 279.1)
XYZxyz(4.8515, 2.4376, 19.9495)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27147E #6B7E14
analogous
#14367E #27147E #5C147E
triadic
#27147E #7E2714 #147E27
tetradic
#27147E #7E1436 #6B7E14 #147E5C
square
#27147E #7E1436 #6B7E14 #147E5C
split-complementary
#27147E #7E5C14 #367E14
monochromatic
#08041A #170C49 #27147E #371CB3 #4E2EDE

Accessibility & contrast

On white

14.12
#27147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#27147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27147E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27147E#FFFFFF#000000##FFFFFF
##27147E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27147e;
/* rgb */ color: rgb(39, 20, 126);
/* oklch */ color: oklch(30.8% 0.163 279.1);
Tailwind
colors: {
  custom: {
    50: '#6f56a5',
    500: '#27147e',
    950: '#000000',
  },
}
SCSS
$custom: #27147e;
$custom-light: #6f56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27147e",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 250.755,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30818,
    "c": 0.16263,
    "h": 279.1
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#27147E
secondary
#9EB33A
accent
#EF38CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27147E

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

Preview Lab → · Contrast checker → · Palette generator →

#27147E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva