#27147C#27147C

#27147C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.160 H 279.5°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#27147C
RGBrgb(39, 20, 124)
HSLhsl(251, 72%, 28%)
HSVhsv(251, 84%, 49%)
CMYKcmyk(68.5%, 83.9%, 0%, 51.4%)
CIE-LABlab(17.40, 39.88, -54.72)
CIE-LCHlch(17.40, 67.71, 306.08°)
OKLaboklab(30.59% 0.0265 -0.158)
OKLCHoklch(30.59% 0.16 279.5)
XYZxyz(4.7238, 2.3865, 19.2766)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27147C #697C14
analogous
#14357C #27147C #5B147C
triadic
#27147C #7C2714 #147C27
tetradic
#27147C #7C1435 #697C14 #147C5B
square
#27147C #7C1435 #697C14 #147C5B
split-complementary
#27147C #7C5B14 #357C14
monochromatic
#08041A #160B47 #27147C #381DB1 #4D2DDD

Accessibility & contrast

On white

14.21
#27147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#27147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27147C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27147C#FFFFFF#000000##FFFFFF
##27147C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27147c;
/* rgb */ color: rgb(39, 20, 124);
/* oklch */ color: oklch(30.6% 0.160 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f56a3',
    500: '#27147c',
    950: '#000000',
  },
}
SCSS
$custom: #27147c;
$custom-light: #6f56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27147c",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 250.962,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30585,
    "c": 0.1602,
    "h": 279.5
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#27147C
secondary
#9CB23A
accent
#EF39CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27147C

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

Preview Lab → · Contrast checker → · Palette generator →

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