#51258D#51258D

#51258D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.161 H 297.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#51258D
RGBrgb(81, 37, 141)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 74%, 55%)
CMYKcmyk(42.6%, 73.8%, 0%, 44.7%)
CIE-LABlab(26.72, 42.58, -49.93)
CIE-LCHlch(26.72, 65.62, 310.45°)
OKLaboklab(38.73% 0.0747 -0.1427)
OKLCHoklch(38.73% 0.161 297.6)
XYZxyz(8.8614, 4.9954, 25.6915)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51258D #618D25
analogous
#252D8D #51258D #85258D
triadic
#51258D #8D5125 #258D51
tetradic
#51258D #8D252D #618D25 #258D85
square
#51258D #8D252D #618D25 #258D85
split-complementary
#51258D #8D8525 #2D8D25
monochromatic
#190C2C #35185D #51258D #6D32BD #8D59D3

Accessibility & contrast

On white

10.50
#51258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#51258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51258D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51258D#FFFFFF#000000##FFFFFF
##51258D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#423F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51258d;
/* rgb */ color: rgb(81, 37, 141);
/* oklch */ color: oklch(38.7% 0.161 297.6);
Tailwind
colors: {
  custom: {
    50: '#8864af',
    500: '#51258d',
    950: '#000000',
  },
}
SCSS
$custom: #51258d;
$custom-light: #8864af;
$custom-dark: #000000;
JSON
{
  "hex": "#51258d",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 265.385,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.1611,
    "h": 297.6
  },
  "luminance": 0.04996
}

Semantic roles & 50–950 ramp

primary
#51258D
secondary
#8EB856
accent
#E246A0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51258D

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

Preview Lab → · Contrast checker → · Palette generator →

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