#51239E#51239E

#51239E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.183 H 293.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#51239E
RGBrgb(81, 35, 158)
HSLhsl(262, 64%, 38%)
HSVhsv(262, 78%, 62%)
CMYKcmyk(48.7%, 77.8%, 0%, 38%)
CIE-LABlab(27.90, 48.11, -58.45)
CIE-LCHlch(27.90, 75.71, 309.46°)
OKLaboklab(40.02% 0.0722 -0.1677)
OKLCHoklch(40.02% 0.183 293.3)
XYZxyz(10.1642, 5.4197, 32.8517)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51239E #709E23
analogous
#23329E #51239E #8E239E
triadic
#51239E #9E5123 #239E51
tetradic
#51239E #9E2332 #709E23 #239E8E
square
#51239E #9E2332 #709E23 #239E8E
split-complementary
#51239E #9E8E23 #329E23
monochromatic
#1E0D3A #37186C #51239E #6B2ED0 #8E60DC

Accessibility & contrast

On white

10.08
#51239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51239E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51239E#FFFFFF#000000##FFFFFF
##51239E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#394560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51239e;
/* rgb */ color: rgb(81, 35, 158);
/* oklch */ color: oklch(40.0% 0.183 293.3);
Tailwind
colors: {
  custom: {
    50: '#8a63bc',
    500: '#51239e',
    950: '#000000',
  },
}
SCSS
$custom: #51239e;
$custom-light: #8a63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51239e",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 262.439,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40021,
    "c": 0.1826,
    "h": 293.3
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#51239E
secondary
#9BC15C
accent
#E741A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51239E

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

Preview Lab → · Contrast checker → · Palette generator →

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