#27127E#27127E

#27127E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.164 H 279.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#27127E
RGBrgb(39, 18, 126)
HSLhsl(252, 75%, 28%)
HSVhsv(252, 86%, 49%)
CMYKcmyk(69%, 85.7%, 0%, 50.6%)
CIE-LABlab(17.32, 41.42, -56.12)
CIE-LCHlch(17.32, 69.76, 306.43°)
OKLaboklab(30.6% 0.0267 -0.162)
OKLCHoklch(30.6% 0.164 279.4)
XYZxyz(4.8177, 2.3699, 19.9382)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27127E #697E12
analogous
#12337E #27127E #5D127E
triadic
#27127E #7E2712 #127E27
tetradic
#27127E #7E1233 #697E12 #127E5D
square
#27127E #7E1233 #697E12 #127E5D
split-complementary
#27127E #7E5D12 #337E12
monochromatic
#08041B #160A48 #27127E #381AB4 #4D2AE1

Accessibility & contrast

On white

14.25
#27127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27127E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27127E#FFFFFF#000000##FFFFFF
##27127E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27127e;
/* rgb */ color: rgb(39, 18, 126);
/* oklch */ color: oklch(30.6% 0.164 279.4);
Tailwind
colors: {
  custom: {
    50: '#7055a5',
    500: '#27127e',
    950: '#000000',
  },
}
SCSS
$custom: #27127e;
$custom-light: #7055a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27127e",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 251.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30602,
    "c": 0.16424,
    "h": 279.4
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#27127E
secondary
#9CB438
accent
#F236CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #27127E

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

Preview Lab → · Contrast checker → · Palette generator →

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