#51239D#51239D

#51239D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.181 H 293.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#51239D
RGBrgb(81, 35, 157)
HSLhsl(263, 64%, 38%)
HSVhsv(263, 78%, 62%)
CMYKcmyk(48.4%, 77.7%, 0%, 38.4%)
CIE-LABlab(27.81, 47.84, -58.00)
CIE-LCHlch(27.81, 75.18, 309.52°)
OKLaboklab(39.93% 0.0725 -0.1664)
OKLCHoklch(39.93% 0.181 293.5)
XYZxyz(10.0785, 5.3854, 32.4002)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51239D #6F9D23
analogous
#23329D #51239D #8E239D
triadic
#51239D #9D5123 #239D51
tetradic
#51239D #9D2332 #6F9D23 #239D8E
square
#51239D #9D2332 #6F9D23 #239D8E
split-complementary
#51239D #9D8E23 #329D23
monochromatic
#1D0D39 #37186B #51239D #6B2ECF #8E5FDB

Accessibility & contrast

On white

10.11
#51239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#51239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51239D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51239D#FFFFFF#000000##FFFFFF
##51239D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#3A455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51239d;
/* rgb */ color: rgb(81, 35, 157);
/* oklch */ color: oklch(39.9% 0.181 293.5);
Tailwind
colors: {
  custom: {
    50: '#8a63bb',
    500: '#51239d',
    950: '#000000',
  },
}
SCSS
$custom: #51239d;
$custom-light: #8a63bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51239d",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 262.623,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39928,
    "c": 0.18149,
    "h": 293.5
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#51239D
secondary
#9AC05C
accent
#E741A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51239D

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

Preview Lab → · Contrast checker → · Palette generator →

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