#27127F#27127F

#27127F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.165 H 279.2°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#27127F
RGBrgb(39, 18, 127)
HSLhsl(252, 75%, 28%)
HSVhsv(252, 86%, 50%)
CMYKcmyk(69.3%, 85.8%, 0%, 50.2%)
CIE-LABlab(17.44, 41.73, -56.56)
CIE-LCHlch(17.44, 70.29, 306.42°)
OKLaboklab(30.72% 0.0264 -0.1633)
OKLCHoklch(30.72% 0.165 279.2)
XYZxyz(4.8825, 2.3958, 20.2797)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27127F #6A7F12
analogous
#12337F #27127F #5D127F
triadic
#27127F #7F2712 #127F27
tetradic
#27127F #7F1233 #6A7F12 #127F5D
square
#27127F #7F1233 #6A7F12 #127F5D
split-complementary
#27127F #7F5D12 #337F12
monochromatic
#08041B #170A49 #27127F #371AB5 #4E2BE1

Accessibility & contrast

On white

14.20
#27127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#27127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27127F
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27127F#FFFFFF#000000##FFFFFF
##27127F1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27127f;
/* rgb */ color: rgb(39, 18, 127);
/* oklch */ color: oklch(30.7% 0.165 279.2);
Tailwind
colors: {
  custom: {
    50: '#7055a5',
    500: '#27127f',
    950: '#000000',
  },
}
SCSS
$custom: #27127f;
$custom-light: #7055a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27127f",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 251.56,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3072,
    "c": 0.16544,
    "h": 279.2
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#27127F
secondary
#9DB538
accent
#F236CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #27127F

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

Preview Lab → · Contrast checker → · Palette generator →

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