#27125D#27125D

#27125D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.123 H 287.8°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#27125D
RGBrgb(39, 18, 93)
HSLhsl(257, 68%, 22%)
HSVhsv(257, 81%, 36%)
CMYKcmyk(58.1%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.56, 31.11, -40.80)
CIE-LCHlch(13.56, 51.31, 307.33°)
OKLaboklab(26.87% 0.0377 -0.1173)
OKLCHoklch(26.87% 0.123 287.8)
XYZxyz(3.0282, 1.6541, 10.5135)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27125D #485D12
analogous
#12235D #27125D #4D125D
triadic
#27125D #5D2712 #125D27
tetradic
#27125D #5D1223 #485D12 #125D4D
square
#27125D #5D1223 #485D12 #125D4D
split-complementary
#27125D #5D4D12 #235D12
monochromatic
#0B051A #11082A #27125D #3D1C90 #5226C4

Accessibility & contrast

On white

15.78
#27125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#27125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27125D
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27125D#FFFFFF#000000##FFFFFF
##27125D1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#112736
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #27125d;
/* rgb */ color: rgb(39, 18, 93);
/* oklch */ color: oklch(26.9% 0.123 287.8);
Tailwind
colors: {
  custom: {
    50: '#68528c',
    500: '#27125d',
    950: '#000000',
  },
}
SCSS
$custom: #27125d;
$custom-light: #68528c;
$custom-dark: #000000;
JSON
{
  "hex": "#27125d",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 256.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26871,
    "c": 0.12326,
    "h": 287.8
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#27125D
secondary
#7B9535
accent
#EA3DBA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #27125D

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

Preview Lab → · Contrast checker → · Palette generator →

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