#27127B#27127B

#27127B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.161 H 280.0°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#27127B
RGBrgb(39, 18, 123)
HSLhsl(252, 74%, 28%)
HSVhsv(252, 85%, 48%)
CMYKcmyk(68.3%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.96, 40.51, -54.81)
CIE-LCHlch(16.96, 68.15, 306.47°)
OKLaboklab(30.25% 0.0278 -0.1582)
OKLCHoklch(30.25% 0.161 280)
XYZxyz(4.6270, 2.2936, 18.9339)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27127B #667B12
analogous
#12317B #27127B #5B127B
triadic
#27127B #7B2712 #127B27
tetradic
#27127B #7B1231 #667B12 #127B5B
square
#27127B #7B1231 #667B12 #127B5B
split-complementary
#27127B #7B5B12 #317B12
monochromatic
#08041B #160A46 #27127B #381AB0 #4D28E0

Accessibility & contrast

On white

14.40
#27127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27127B
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27127B#FFFFFF#000000##FFFFFF
##27127B1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #27127b;
/* rgb */ color: rgb(39, 18, 123);
/* oklch */ color: oklch(30.2% 0.161 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f55a2',
    500: '#27127b',
    950: '#000000',
  },
}
SCSS
$custom: #27127b;
$custom-light: #6f55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27127b",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 252,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30247,
    "c": 0.16064,
    "h": 280
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#27127B
secondary
#99B138
accent
#F137CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27127B

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

Preview Lab → · Contrast checker → · Palette generator →

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