#51127A#51127A

#51127A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.161 H 306.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#51127A
RGBrgb(81, 18, 122)
HSLhsl(276, 74%, 27%)
HSVhsv(276, 85%, 48%)
CMYKcmyk(33.6%, 85.2%, 0%, 52.2%)
CIE-LABlab(22.26, 45.89, -45.26)
CIE-LCHlch(22.26, 64.46, 315.40°)
OKLaboklab(35.08% 0.0967 -0.1289)
OKLCHoklch(35.08% 0.161 306.9)
XYZxyz(7.1217, 3.5872, 18.7258)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51127A #3B7A12
analogous
#1D127A #51127A #7A126F
triadic
#51127A #7A5112 #127A51
tetradic
#51127A #7A1D12 #3B7A12 #126F7A
square
#51127A #7A1D12 #3B7A12 #126F7A
split-complementary
#51127A #6F7A12 #127A1D
monochromatic
#12041B #2E0A45 #51127A #741AAF #9727DF

Accessibility & contrast

On white

12.23
#51127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#51127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51127A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51127A#FFFFFF#000000##FFFFFF
##51127A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#4A2F47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51127a;
/* rgb */ color: rgb(81, 18, 122);
/* oklch */ color: oklch(35.1% 0.161 306.9);
Tailwind
colors: {
  custom: {
    50: '#875aa1',
    500: '#51127a',
    950: '#000000',
  },
}
SCSS
$custom: #51127a;
$custom-light: #875aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#51127a",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 276.346,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.1611,
    "h": 306.9
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#51127A
secondary
#67B038
accent
#F13780
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51127A

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

Preview Lab → · Contrast checker → · Palette generator →

#51127A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva