#27117E#27117E

#27117E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.5% C 0.165 H 279.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#27117E
RGBrgb(39, 17, 126)
HSLhsl(252, 76%, 28%)
HSVhsv(252, 87%, 49%)
CMYKcmyk(69%, 86.5%, 0%, 50.6%)
CIE-LABlab(17.17, 41.86, -56.37)
CIE-LCHlch(17.17, 70.22, 306.60°)
OKLaboklab(30.5% 0.0272 -0.1627)
OKLCHoklch(30.5% 0.165 279.5)
XYZxyz(4.8018, 2.3382, 19.9329)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27117E #687E11
analogous
#11317E #27117E #5D117E
triadic
#27117E #7E2711 #117E27
tetradic
#27117E #7E1131 #687E11 #117E5D
square
#27117E #7E1131 #687E11 #117E5D
split-complementary
#27117E #7E5D11 #317E11
monochromatic
#08041B #160A48 #27117E #3818B4 #4D27E2

Accessibility & contrast

On white

14.31
#27117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#27117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27117E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27117E#FFFFFF#000000##FFFFFF
##27117E1.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)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27117e;
/* rgb */ color: rgb(39, 17, 126);
/* oklch */ color: oklch(30.5% 0.165 279.5);
Tailwind
colors: {
  custom: {
    50: '#7054a5',
    500: '#27117e',
    950: '#000000',
  },
}
SCSS
$custom: #27117e;
$custom-light: #7054a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27117e",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 252.11,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30499,
    "c": 0.165,
    "h": 279.5
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#27117E
secondary
#9BB437
accent
#F335CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #27117E

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

Preview Lab → · Contrast checker → · Palette generator →

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