#51239C#51239C

#51239C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.180 H 293.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#51239C
RGBrgb(81, 35, 156)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 78%, 61%)
CMYKcmyk(48.1%, 77.6%, 0%, 38.8%)
CIE-LABlab(27.71, 47.57, -57.54)
CIE-LCHlch(27.71, 74.66, 309.58°)
OKLaboklab(39.84% 0.0728 -0.165)
OKLCHoklch(39.84% 0.18 293.8)
XYZxyz(9.9935, 5.3514, 31.9524)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51239C #6E9C23
analogous
#23319C #51239C #8E239C
triadic
#51239C #9C5123 #239C51
tetradic
#51239C #9C2331 #6E9C23 #239C8E
square
#51239C #9C2331 #6E9C23 #239C8E
split-complementary
#51239C #9C8E23 #319C23
monochromatic
#1D0D38 #37186A #51239C #6B2ECE #8E5EDB

Accessibility & contrast

On white

10.14
#51239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#51239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51239C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51239C#FFFFFF#000000##FFFFFF
##51239C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3A445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51239c;
/* rgb */ color: rgb(81, 35, 156);
/* oklch */ color: oklch(39.8% 0.180 293.8);
Tailwind
colors: {
  custom: {
    50: '#8a63ba',
    500: '#51239c',
    950: '#000000',
  },
}
SCSS
$custom: #51239c;
$custom-light: #8a63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51239c",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 262.81,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.18037,
    "h": 293.8
  },
  "luminance": 0.05352
}

Semantic roles & 50–950 ramp

primary
#51239C
secondary
#99C05B
accent
#E641A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51239C

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

Preview Lab → · Contrast checker → · Palette generator →

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