#51237A#51237A

#51237A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.142 H 304.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#51237A
RGBrgb(81, 35, 122)
HSLhsl(272, 55%, 31%)
HSVhsv(272, 71%, 48%)
CMYKcmyk(33.6%, 71.3%, 0%, 52.2%)
CIE-LABlab(24.82, 38.58, -41.10)
CIE-LCHlch(24.82, 56.37, 313.19°)
OKLaboklab(36.89% 0.0803 -0.1168)
OKLCHoklch(36.89% 0.142 304.5)
XYZxyz(7.5064, 4.3566, 18.8540)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51237A #4C7A23
analogous
#25237A #51237A #7A2377
triadic
#51237A #7A5123 #237A51
tetradic
#51237A #7A2523 #4C7A23 #23777A
square
#51237A #7A2523 #4C7A23 #23777A
split-complementary
#51237A #777A23 #237A25
monochromatic
#12081B #31154A #51237A #7131AA #8F4CCC

Accessibility & contrast

On white

11.22
#51237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#51237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51237A
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51237A#FFFFFF#000000##FFFFFF
##51237A1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#013B78
Tritanopia (blue-blind)
#49374B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51237a;
/* rgb */ color: rgb(81, 35, 122);
/* oklch */ color: oklch(36.9% 0.142 304.5);
Tailwind
colors: {
  custom: {
    50: '#8662a1',
    500: '#51237a',
    950: '#000000',
  },
}
SCSS
$custom: #51237a;
$custom-light: #8662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51237a",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 271.724,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36888,
    "c": 0.14171,
    "h": 304.5
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51237A

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

Preview Lab → · Contrast checker → · Palette generator →

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