#51248D#51248D

#51248D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.162 H 297.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#51248D
RGBrgb(81, 36, 141)
HSLhsl(266, 59%, 35%)
HSVhsv(266, 74%, 55%)
CMYKcmyk(42.6%, 74.5%, 0%, 44.7%)
CIE-LABlab(26.55, 43.07, -50.22)
CIE-LCHlch(26.55, 66.16, 310.62°)
OKLaboklab(38.6% 0.0757 -0.1436)
OKLCHoklch(38.6% 0.162 297.8)
XYZxyz(8.8307, 4.9340, 25.6812)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51248D #608D24
analogous
#242C8D #51248D #85248D
triadic
#51248D #8D5124 #248D51
tetradic
#51248D #8D242C #608D24 #248D85
square
#51248D #8D242C #608D24 #248D85
split-complementary
#51248D #8D8524 #2C8D24
monochromatic
#190B2B #35185C #51248D #6D30BE #8D57D4

Accessibility & contrast

On white

10.57
#51248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51248D
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51248D#FFFFFF#000000##FFFFFF
##51248D1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.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: #51248d;
/* rgb */ color: rgb(81, 36, 141);
/* oklch */ color: oklch(38.6% 0.162 297.8);
Tailwind
colors: {
  custom: {
    50: '#8863af',
    500: '#51248d',
    950: '#000000',
  },
}
SCSS
$custom: #51248d;
$custom-light: #8863af;
$custom-dark: #000000;
JSON
{
  "hex": "#51248d",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 265.714,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38602,
    "c": 0.16229,
    "h": 297.8
  },
  "luminance": 0.04934
}

Semantic roles & 50–950 ramp

primary
#51248D
secondary
#8EB854
accent
#E3459F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #51248D

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

Preview Lab → · Contrast checker → · Palette generator →

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