#51238D#51238D

#51238D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.163 H 298.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#51238D
RGBrgb(81, 35, 141)
HSLhsl(266, 60%, 35%)
HSVhsv(266, 75%, 55%)
CMYKcmyk(42.6%, 75.2%, 0%, 44.7%)
CIE-LABlab(26.37, 43.56, -50.50)
CIE-LCHlch(26.37, 66.69, 310.78°)
OKLaboklab(38.48% 0.0767 -0.1444)
OKLCHoklch(38.48% 0.163 298)
XYZxyz(8.8008, 4.8743, 25.6713)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51238D #5F8D23
analogous
#232A8D #51238D #86238D
triadic
#51238D #8D5123 #238D51
tetradic
#51238D #8D232A #5F8D23 #238D86
square
#51238D #8D232A #5F8D23 #238D86
split-complementary
#51238D #8D8623 #2A8D23
monochromatic
#190B2B #35175C #51238D #6D2FBE #8D55D5

Accessibility & contrast

On white

10.63
#51238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#51238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51238D
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51238D#FFFFFF#000000##FFFFFF
##51238D1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#423E56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51238d;
/* rgb */ color: rgb(81, 35, 141);
/* oklch */ color: oklch(38.5% 0.163 298.0);
Tailwind
colors: {
  custom: {
    50: '#8863af',
    500: '#51238d',
    950: '#000000',
  },
}
SCSS
$custom: #51238d;
$custom-light: #8863af;
$custom-dark: #000000;
JSON
{
  "hex": "#51238d",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 266.038,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38481,
    "c": 0.16347,
    "h": 298
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#51238D
secondary
#8DB953
accent
#E3449E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #51238D

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

Preview Lab → · Contrast checker → · Palette generator →

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