#51236D#51236D

#51236D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.127 H 310.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#51236D
RGBrgb(81, 35, 109)
HSLhsl(277, 51%, 28%)
HSVhsv(277, 68%, 43%)
CMYKcmyk(25.7%, 67.9%, 0%, 57.3%)
CIE-LABlab(23.85, 35.31, -34.33)
CIE-LCHlch(23.85, 49.25, 315.81°)
OKLaboklab(35.89% 0.0816 -0.0969)
OKLCHoklch(35.89% 0.127 310.1)
XYZxyz(6.7542, 4.0557, 14.8920)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51236D #3F6D23
analogous
#2C236D #51236D #6D2364
triadic
#51236D #6D5123 #236D51
tetradic
#51236D #6D2C23 #3F6D23 #23646D
square
#51236D #6D2C23 #3F6D23 #23646D
split-complementary
#51236D #646D23 #236D2C
monochromatic
#110717 #2F143F #51236D #73329B #9447C4

Accessibility & contrast

On white

11.59
#51236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#51236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51236D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51236D#FFFFFF#000000##FFFFFF
##51236D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#19396B
Tritanopia (blue-blind)
#4D3244
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #51236d;
/* rgb */ color: rgb(81, 35, 109);
/* oklch */ color: oklch(35.9% 0.127 310.1);
Tailwind
colors: {
  custom: {
    50: '#856197',
    500: '#51236d',
    950: '#000000',
  },
}
SCSS
$custom: #51236d;
$custom-light: #856197;
$custom-dark: #000000;
JSON
{
  "hex": "#51236d",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 277.297,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35891,
    "c": 0.12669,
    "h": 310.1
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#51236D
secondary
#6CA04B
accent
#DB4D83
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51236D

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

Preview Lab → · Contrast checker → · Palette generator →

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