#51236C#51236C

#51236C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.126 H 310.6°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#51236C
RGBrgb(81, 35, 108)
HSLhsl(278, 51%, 28%)
HSVhsv(278, 68%, 42%)
CMYKcmyk(25%, 67.6%, 0%, 57.6%)
CIE-LABlab(23.78, 35.07, -33.80)
CIE-LCHlch(23.78, 48.70, 316.06°)
OKLaboklab(35.82% 0.0817 -0.0953)
OKLCHoklch(35.82% 0.126 310.6)
XYZxyz(6.7006, 4.0342, 14.6102)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51236C #3E6C23
analogous
#2C236C #51236C #6C2362
triadic
#51236C #6C5123 #236C51
tetradic
#51236C #6C2C23 #3E6C23 #23626C
square
#51236C #6C2C23 #3E6C23 #23626C
split-complementary
#51236C #626C23 #236C2C
monochromatic
#110717 #2E143E #51236C #74329A #9546C3

Accessibility & contrast

On white

11.62
#51236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51236C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51236C#FFFFFF#000000##FFFFFF
##51236C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#1A396A
Tritanopia (blue-blind)
#4E3244
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #51236c;
/* rgb */ color: rgb(81, 35, 108);
/* oklch */ color: oklch(35.8% 0.126 310.6);
Tailwind
colors: {
  custom: {
    50: '#856196',
    500: '#51236c',
    950: '#000000',
  },
}
SCSS
$custom: #51236c;
$custom-light: #856196;
$custom-dark: #000000;
JSON
{
  "hex": "#51236c",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 277.808,
    "s": 51.049,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35818,
    "c": 0.12553,
    "h": 310.6
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#51236C
secondary
#6A9F4B
accent
#DB4D82
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51236C

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

Preview Lab → · Contrast checker → · Palette generator →

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