#51258E#51258E

#51258E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.162 H 297.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#51258E
RGBrgb(81, 37, 142)
HSLhsl(265, 59%, 35%)
HSVhsv(265, 74%, 56%)
CMYKcmyk(43%, 73.9%, 0%, 44.3%)
CIE-LABlab(26.81, 42.84, -50.41)
CIE-LCHlch(26.81, 66.16, 310.36°)
OKLaboklab(38.81% 0.0745 -0.1441)
OKLCHoklch(38.81% 0.162 297.3)
XYZxyz(8.9361, 5.0253, 26.0851)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51258E #628E25
analogous
#252D8E #51258E #85258E
triadic
#51258E #8E5125 #258E51
tetradic
#51258E #8E252D #628E25 #258E85
square
#51258E #8E252D #628E25 #258E85
split-complementary
#51258E #8E8525 #2D8E25
monochromatic
#1A0C2D #35185D #51258E #6D32BF #8D5AD4

Accessibility & contrast

On white

10.47
#51258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#51258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51258E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51258E#FFFFFF#000000##FFFFFF
##51258E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#414057
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51258e;
/* rgb */ color: rgb(81, 37, 142);
/* oklch */ color: oklch(38.8% 0.162 297.3);
Tailwind
colors: {
  custom: {
    50: '#8864b0',
    500: '#51258e',
    950: '#000000',
  },
}
SCSS
$custom: #51258e;
$custom-light: #8864b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51258e",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 265.143,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38813,
    "c": 0.16225,
    "h": 297.3
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#51258E
secondary
#8FB956
accent
#E246A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51258E

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

Preview Lab → · Contrast checker → · Palette generator →

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