#27127D#27127D

#27127D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.5% C 0.163 H 279.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#27127D
RGBrgb(39, 18, 125)
HSLhsl(252, 75%, 28%)
HSVhsv(252, 86%, 49%)
CMYKcmyk(68.8%, 85.6%, 0%, 51%)
CIE-LABlab(17.20, 41.12, -55.69)
CIE-LCHlch(17.20, 69.22, 306.44°)
OKLaboklab(30.48% 0.0271 -0.1608)
OKLCHoklch(30.48% 0.163 279.6)
XYZxyz(4.7535, 2.3442, 19.6000)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27127D #687D12
analogous
#12327D #27127D #5C127D
triadic
#27127D #7D2712 #127D27
tetradic
#27127D #7D1232 #687D12 #127D5C
square
#27127D #7D1232 #687D12 #127D5C
split-complementary
#27127D #7D5C12 #327D12
monochromatic
#08041B #160A48 #27127D #381AB2 #4D29E0

Accessibility & contrast

On white

14.30
#27127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27127D
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27127D#FFFFFF#000000##FFFFFF
##27127D1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27127d;
/* rgb */ color: rgb(39, 18, 125);
/* oklch */ color: oklch(30.5% 0.163 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f55a4',
    500: '#27127d',
    950: '#000000',
  },
}
SCSS
$custom: #27127d;
$custom-light: #6f55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27127d",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 251.776,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30483,
    "c": 0.16305,
    "h": 279.6
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#27127D
secondary
#9BB338
accent
#F136CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27127D

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

Preview Lab → · Contrast checker → · Palette generator →

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