#51238E#51238E

#51238E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.165 H 297.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#51238E
RGBrgb(81, 35, 142)
HSLhsl(266, 60%, 35%)
HSVhsv(266, 75%, 56%)
CMYKcmyk(43%, 75.4%, 0%, 44.3%)
CIE-LABlab(26.46, 43.82, -50.98)
CIE-LCHlch(26.46, 67.22, 310.69°)
OKLaboklab(38.57% 0.0764 -0.1458)
OKLCHoklch(38.57% 0.165 297.7)
XYZxyz(8.8756, 4.9042, 26.0649)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51238E #608E23
analogous
#232B8E #51238E #86238E
triadic
#51238E #8E5123 #238E51
tetradic
#51238E #8E232B #608E23 #238E86
square
#51238E #8E232B #608E23 #238E86
split-complementary
#51238E #8E8623 #2B8E23
monochromatic
#190B2C #35175D #51238E #6D2FBF #8D56D5

Accessibility & contrast

On white

10.60
#51238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#51238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51238E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51238E#FFFFFF#000000##FFFFFF
##51238E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#413F57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51238e;
/* rgb */ color: rgb(81, 35, 142);
/* oklch */ color: oklch(38.6% 0.165 297.7);
Tailwind
colors: {
  custom: {
    50: '#8863b0',
    500: '#51238e',
    950: '#000000',
  },
}
SCSS
$custom: #51238e;
$custom-light: #8863b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51238e",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 265.794,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.1646,
    "h": 297.7
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#51238E
secondary
#8EB953
accent
#E4449F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #51238E

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

Preview Lab → · Contrast checker → · Palette generator →

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