#51249C#51249C

#51249C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.179 H 293.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#51249C
RGBrgb(81, 36, 156)
HSLhsl(263, 63%, 38%)
HSVhsv(263, 77%, 61%)
CMYKcmyk(48.1%, 76.9%, 0%, 38.8%)
CIE-LABlab(27.88, 47.11, -57.27)
CIE-LCHlch(27.88, 74.16, 309.44°)
OKLaboklab(39.95% 0.0719 -0.1643)
OKLCHoklch(39.95% 0.179 293.6)
XYZxyz(10.0233, 5.4111, 31.9624)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51249C #6F9C24
analogous
#24339C #51249C #8D249C
triadic
#51249C #9C5124 #249C51
tetradic
#51249C #9C2433 #6F9C24 #249C8D
square
#51249C #9C2433 #6F9C24 #249C8D
split-complementary
#51249C #9C8D24 #339C24
monochromatic
#1D0D39 #37196A #51249C #6B2FCE #8E60DA

Accessibility & contrast

On white

10.09
#51249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#51249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51249C
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51249C#FFFFFF#000000##FFFFFF
##51249C1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#3A455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51249c;
/* rgb */ color: rgb(81, 36, 156);
/* oklch */ color: oklch(39.9% 0.179 293.6);
Tailwind
colors: {
  custom: {
    50: '#8a64ba',
    500: '#51249c',
    950: '#000000',
  },
}
SCSS
$custom: #51249c;
$custom-light: #8a64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51249c",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 262.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.17933,
    "h": 293.6
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#51249C
secondary
#9ABF5C
accent
#E642A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51249C

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

Preview Lab → · Contrast checker → · Palette generator →

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