#51239B#51239B

#51239B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 294.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#51239B
RGBrgb(81, 35, 155)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 77%, 61%)
CMYKcmyk(47.7%, 77.4%, 0%, 39.2%)
CIE-LABlab(27.62, 47.30, -57.08)
CIE-LCHlch(27.62, 74.13, 309.65°)
OKLaboklab(39.74% 0.073 -0.1637)
OKLCHoklch(39.74% 0.179 294)
XYZxyz(9.9091, 5.3177, 31.5083)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51239B #6D9B23
analogous
#23319B #51239B #8D239B
triadic
#51239B #9B5123 #239B51
tetradic
#51239B #9B2331 #6D9B23 #239B8D
square
#51239B #9B2331 #6D9B23 #239B8D
split-complementary
#51239B #9B8D23 #319B23
monochromatic
#1D0C37 #371869 #51239B #6B2ECD #8E5EDB

Accessibility & contrast

On white

10.18
#51239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51239B
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51239B#FFFFFF#000000##FFFFFF
##51239B1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#3B445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51239b;
/* rgb */ color: rgb(81, 35, 155);
/* oklch */ color: oklch(39.7% 0.179 294.0);
Tailwind
colors: {
  custom: {
    50: '#8a63b9',
    500: '#51239b',
    950: '#000000',
  },
}
SCSS
$custom: #51239b;
$custom-light: #8a63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51239b",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 263,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39742,
    "c": 0.17926,
    "h": 294
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#51239B
secondary
#99BF5A
accent
#E642A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51239B

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

Preview Lab → · Contrast checker → · Palette generator →

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