#51248E#51248E

#51248E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.163 H 297.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#51248E
RGBrgb(81, 36, 142)
HSLhsl(265, 60%, 35%)
HSVhsv(265, 75%, 56%)
CMYKcmyk(43%, 74.6%, 0%, 44.3%)
CIE-LABlab(26.63, 43.34, -50.70)
CIE-LCHlch(26.63, 66.70, 310.53°)
OKLaboklab(38.69% 0.0755 -0.145)
OKLCHoklch(38.69% 0.163 297.5)
XYZxyz(8.9054, 4.9639, 26.0749)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51248E #618E24
analogous
#242C8E #51248E #86248E
triadic
#51248E #8E5124 #248E51
tetradic
#51248E #8E242C #618E24 #248E86
square
#51248E #8E242C #618E24 #248E86
split-complementary
#51248E #8E8624 #2C8E24
monochromatic
#190B2C #35185D #51248E #6D30BF #8D58D5

Accessibility & contrast

On white

10.54
#51248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#51248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51248E
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51248E#FFFFFF#000000##FFFFFF
##51248E1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51248e;
/* rgb */ color: rgb(81, 36, 142);
/* oklch */ color: oklch(38.7% 0.163 297.5);
Tailwind
colors: {
  custom: {
    50: '#8863b0',
    500: '#51248e',
    950: '#000000',
  },
}
SCSS
$custom: #51248e;
$custom-light: #8863b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51248e",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 265.472,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3869,
    "c": 0.16343,
    "h": 297.5
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#51248E
secondary
#8EB955
accent
#E345A0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #51248E

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

Preview Lab → · Contrast checker → · Palette generator →

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