#51246A#51246A

#51246A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.8% C 0.122 H 311.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#51246A
RGBrgb(81, 36, 106)
HSLhsl(279, 49%, 28%)
HSVhsv(279, 66%, 42%)
CMYKcmyk(23.6%, 66%, 0%, 58.4%)
CIE-LABlab(23.84, 34.04, -32.41)
CIE-LCHlch(23.84, 47.00, 316.41°)
OKLaboklab(35.82% 0.0804 -0.0912)
OKLCHoklch(35.82% 0.122 311.4)
XYZxyz(6.6253, 4.0518, 14.0660)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51246A #3D6A24
analogous
#2E246A #51246A #6A2460
triadic
#51246A #6A5124 #246A51
tetradic
#51246A #6A2E24 #3D6A24 #24606A
square
#51246A #6A2E24 #3D6A24 #24606A
split-complementary
#51246A #606A24 #246A2E
monochromatic
#110817 #2E143C #51246A #743498 #9548C1

Accessibility & contrast

On white

11.60
#51246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#51246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51246A
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51246A#FFFFFF#000000##FFFFFF
##51246A1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05376C
Deuteranopia (green-blind)
#1D3A68
Tritanopia (blue-blind)
#4E3143
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #51246a;
/* rgb */ color: rgb(81, 36, 106);
/* oklch */ color: oklch(35.8% 0.122 311.4);
Tailwind
colors: {
  custom: {
    50: '#846295',
    500: '#51246a',
    950: '#000000',
  },
}
SCSS
$custom: #51246a;
$custom-light: #846295;
$custom-dark: #000000;
JSON
{
  "hex": "#51246a",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 278.571,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35815,
    "c": 0.12165,
    "h": 311.4
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#51246A
secondary
#699D4D
accent
#D94F80
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51246A

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

Preview Lab → · Contrast checker → · Palette generator →

#51246A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva