#27127C#27127C

#27127C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.162 H 279.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#27127C
RGBrgb(39, 18, 124)
HSLhsl(252, 75%, 28%)
HSVhsv(252, 85%, 49%)
CMYKcmyk(68.5%, 85.5%, 0%, 51.4%)
CIE-LABlab(17.08, 40.81, -55.25)
CIE-LCHlch(17.08, 68.69, 306.45°)
OKLaboklab(30.37% 0.0274 -0.1595)
OKLCHoklch(30.37% 0.162 279.8)
XYZxyz(4.6899, 2.3188, 19.2653)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27127C #677C12
analogous
#12327C #27127C #5C127C
triadic
#27127C #7C2712 #127C27
tetradic
#27127C #7C1232 #677C12 #127C5C
square
#27127C #7C1232 #677C12 #127C5C
split-complementary
#27127C #7C5C12 #327C12
monochromatic
#08041B #160A47 #27127C #381AB1 #4D29E0

Accessibility & contrast

On white

14.35
#27127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#27127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27127C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27127C#FFFFFF#000000##FFFFFF
##27127C1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27127c;
/* rgb */ color: rgb(39, 18, 124);
/* oklch */ color: oklch(30.4% 0.162 279.8);
Tailwind
colors: {
  custom: {
    50: '#6f55a3',
    500: '#27127c',
    950: '#000000',
  },
}
SCSS
$custom: #27127c;
$custom-light: #6f55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27127c",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 251.887,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30365,
    "c": 0.16184,
    "h": 279.8
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#27127C
secondary
#9AB238
accent
#F137CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27127C

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

Preview Lab → · Contrast checker → · Palette generator →

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