#27147A#27147A

#27147A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.158 H 279.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#27147A
RGBrgb(39, 20, 122)
HSLhsl(251, 72%, 28%)
HSVhsv(251, 84%, 48%)
CMYKcmyk(68%, 83.6%, 0%, 52.2%)
CIE-LABlab(17.16, 39.25, -53.83)
CIE-LCHlch(17.16, 66.62, 306.10°)
OKLaboklab(30.35% 0.0271 -0.1554)
OKLCHoklch(30.35% 0.158 279.9)
XYZxyz(4.5986, 2.3364, 18.6172)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27147A #677A14
analogous
#14347A #27147A #5A147A
triadic
#27147A #7A2714 #147A27
tetradic
#27147A #7A1434 #677A14 #147A5A
square
#27147A #7A1434 #677A14 #147A5A
split-complementary
#27147A #7A5A14 #347A14
monochromatic
#08041A #160B45 #27147A #381DAF #4D2CDC

Accessibility & contrast

On white

14.31
#27147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#27147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27147A
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27147A#FFFFFF#000000##FFFFFF
##27147A1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27147a;
/* rgb */ color: rgb(39, 20, 122);
/* oklch */ color: oklch(30.4% 0.158 279.9);
Tailwind
colors: {
  custom: {
    50: '#6e55a2',
    500: '#27147a',
    950: '#000000',
  },
}
SCSS
$custom: #27147a;
$custom-light: #6e55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27147a",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 251.176,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30353,
    "c": 0.15776,
    "h": 279.9
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#27147A
secondary
#9AB03A
accent
#EF39CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27147A

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

Preview Lab → · Contrast checker → · Palette generator →

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