#27117F#27117F

#27117F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.166 H 279.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#27117F
RGBrgb(39, 17, 127)
HSLhsl(252, 76%, 28%)
HSVhsv(252, 87%, 50%)
CMYKcmyk(69.3%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.29, 42.17, -56.81)
CIE-LCHlch(17.29, 70.74, 306.59°)
OKLaboklab(30.62% 0.0268 -0.164)
OKLCHoklch(30.62% 0.166 279.3)
XYZxyz(4.8667, 2.3641, 20.2744)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27117F #697F11
analogous
#11327F #27117F #5E117F
triadic
#27117F #7F2711 #117F27
tetradic
#27117F #7F1132 #697F11 #117F5E
square
#27117F #7F1132 #697F11 #117F5E
split-complementary
#27117F #7F5E11 #327F11
monochromatic
#08041B #160A49 #27117F #3818B5 #4D28E2

Accessibility & contrast

On white

14.26
#27117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27117F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27117F#FFFFFF#000000##FFFFFF
##27117F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27117f;
/* rgb */ color: rgb(39, 17, 127);
/* oklch */ color: oklch(30.6% 0.166 279.3);
Tailwind
colors: {
  custom: {
    50: '#7054a5',
    500: '#27117f',
    950: '#000000',
  },
}
SCSS
$custom: #27117f;
$custom-light: #7054a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27117f",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 252,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30618,
    "c": 0.16619,
    "h": 279.3
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#27117F
secondary
#9CB537
accent
#F335CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #27117F

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

Preview Lab → · Contrast checker → · Palette generator →

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