#51248C#51248C

#51248C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.161 H 298.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#51248C
RGBrgb(81, 36, 140)
HSLhsl(266, 59%, 35%)
HSVhsv(266, 74%, 55%)
CMYKcmyk(42.1%, 74.3%, 0%, 45.1%)
CIE-LABlab(26.46, 42.80, -49.73)
CIE-LCHlch(26.46, 65.62, 310.72°)
OKLaboklab(38.52% 0.0759 -0.1421)
OKLCHoklch(38.52% 0.161 298.1)
XYZxyz(8.7566, 4.9044, 25.2912)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51248C #5F8C24
analogous
#242B8C #51248C #85248C
triadic
#51248C #8C5124 #248C51
tetradic
#51248C #8C242B #5F8C24 #248C85
square
#51248C #8C242B #5F8C24 #248C85
split-complementary
#51248C #8C8524 #2B8C24
monochromatic
#190B2B #35175B #51248C #6D31BD #8D57D4

Accessibility & contrast

On white

10.60
#51248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#51248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51248C
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51248C#FFFFFF#000000##FFFFFF
##51248C1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#423E56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51248c;
/* rgb */ color: rgb(81, 36, 140);
/* oklch */ color: oklch(38.5% 0.161 298.1);
Tailwind
colors: {
  custom: {
    50: '#8863ae',
    500: '#51248c',
    950: '#000000',
  },
}
SCSS
$custom: #51248c;
$custom-light: #8863ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51248c",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 265.962,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38515,
    "c": 0.16115,
    "h": 298.1
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#51248C
secondary
#8DB854
accent
#E2469E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #51248C

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

Preview Lab → · Contrast checker → · Palette generator →

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