#51237B#51237B

#51237B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.143 H 304.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#51237B
RGBrgb(81, 35, 123)
HSLhsl(271, 56%, 31%)
HSVhsv(271, 72%, 48%)
CMYKcmyk(34.1%, 71.5%, 0%, 51.8%)
CIE-LABlab(24.89, 38.84, -41.61)
CIE-LCHlch(24.89, 56.92, 313.03°)
OKLaboklab(36.97% 0.0801 -0.1183)
OKLCHoklch(36.97% 0.143 304.1)
XYZxyz(7.5687, 4.3815, 19.1820)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51237B #4D7B23
analogous
#25237B #51237B #7B2379
triadic
#51237B #7B5123 #237B51
tetradic
#51237B #7B2523 #4D7B23 #23797B
square
#51237B #7B2523 #4D7B23 #23797B
split-complementary
#51237B #797B23 #237B25
monochromatic
#12081C #32154B #51237B #7031AB #8F4CCC

Accessibility & contrast

On white

11.19
#51237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#51237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51237B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51237B#FFFFFF#000000##FFFFFF
##51237B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#49374C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51237b;
/* rgb */ color: rgb(81, 35, 123);
/* oklch */ color: oklch(37.0% 0.143 304.1);
Tailwind
colors: {
  custom: {
    50: '#8662a2',
    500: '#51237b',
    950: '#000000',
  },
}
SCSS
$custom: #51237b;
$custom-light: #8662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51237b",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 271.364,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36968,
    "c": 0.14286,
    "h": 304.1
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#51237B
secondary
#7BAE4C
accent
#DF4990
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #51237B

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

Preview Lab → · Contrast checker → · Palette generator →

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