#51298C#51298C

#51298C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.155 H 297.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#51298C
RGBrgb(81, 41, 140)
HSLhsl(264, 55%, 35%)
HSVhsv(264, 71%, 55%)
CMYKcmyk(42.1%, 70.7%, 0%, 45.1%)
CIE-LABlab(27.38, 40.24, -48.24)
CIE-LCHlch(27.38, 62.82, 309.83°)
OKLaboklab(39.17% 0.0707 -0.1378)
OKLCHoklch(39.17% 0.155 297.2)
XYZxyz(8.9187, 5.2285, 25.3452)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51298C #648C29
analogous
#29338C #51298C #82298C
triadic
#51298C #8C5129 #298C51
tetradic
#51298C #8C2933 #648C29 #298C82
square
#51298C #8C2933 #648C29 #298C82
split-complementary
#51298C #8C8229 #338C29
monochromatic
#1A0D2D #361B5D #51298C #6C37BB #8D5FD0

Accessibility & contrast

On white

10.26
#51298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#51298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51298C
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51298C#FFFFFF#000000##FFFFFF
##51298C1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#424157
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51298c;
/* rgb */ color: rgb(81, 41, 140);
/* oklch */ color: oklch(39.2% 0.155 297.2);
Tailwind
colors: {
  custom: {
    50: '#8766ae',
    500: '#51298c',
    950: '#000000',
  },
}
SCSS
$custom: #51298c;
$custom-light: #8766ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51298c",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 264.242,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39166,
    "c": 0.15489,
    "h": 297.2
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#51298C
secondary
#91B65B
accent
#DE4AA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51298C

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

Preview Lab → · Contrast checker → · Palette generator →

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