#51248B#51248B

#51248B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.160 H 298.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#51248B
RGBrgb(81, 36, 139)
HSLhsl(266, 59%, 34%)
HSVhsv(266, 74%, 55%)
CMYKcmyk(41.7%, 74.1%, 0%, 45.5%)
CIE-LABlab(26.38, 42.54, -49.25)
CIE-LCHlch(26.38, 65.08, 310.82°)
OKLaboklab(38.43% 0.0761 -0.1407)
OKLCHoklch(38.43% 0.16 298.4)
XYZxyz(8.6832, 4.8750, 24.9046)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51248B #5E8B24
analogous
#242A8B #51248B #85248B
triadic
#51248B #8B5124 #248B51
tetradic
#51248B #8B242A #5E8B24 #248B85
square
#51248B #8B242A #5E8B24 #248B85
split-complementary
#51248B #8B8524 #2A8B24
monochromatic
#180B2A #35175A #51248B #6D31BC #8D56D3

Accessibility & contrast

On white

10.63
#51248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51248B
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51248B#FFFFFF#000000##FFFFFF
##51248B1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#433E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51248b;
/* rgb */ color: rgb(81, 36, 139);
/* oklch */ color: oklch(38.4% 0.160 298.4);
Tailwind
colors: {
  custom: {
    50: '#8763ae',
    500: '#51248b',
    950: '#000000',
  },
}
SCSS
$custom: #51248b;
$custom-light: #8763ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51248b",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 266.214,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38429,
    "c": 0.16,
    "h": 298.4
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51248B

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

Preview Lab → · Contrast checker → · Palette generator →

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