#512276#512276

#512276 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.138 H 306.3°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#512276
RGBrgb(81, 34, 118)
HSLhsl(274, 55%, 30%)
HSVhsv(274, 71%, 46%)
CMYKcmyk(31.4%, 71.2%, 0%, 53.7%)
CIE-LABlab(24.33, 38.08, -39.35)
CIE-LCHlch(24.33, 54.76, 314.06°)
OKLaboklab(36.44% 0.082 -0.1116)
OKLCHoklch(36.44% 0.138 306.3)
XYZxyz(7.2347, 4.2015, 17.5659)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512276 #477622
analogous
#272276 #512276 #762271
triadic
#512276 #765122 #227651
tetradic
#512276 #762722 #477622 #227176
square
#512276 #762722 #477622 #227176
split-complementary
#512276 #717622 #227627
monochromatic
#100718 #301446 #512276 #7230A6 #9148CA

Accessibility & contrast

On white

11.41
#512276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#512276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512276
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512276#FFFFFF#000000##FFFFFF
##5122761.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#093A74
Tritanopia (blue-blind)
#4B3549
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512276;
/* rgb */ color: rgb(81, 34, 118);
/* oklch */ color: oklch(36.4% 0.138 306.3);
Tailwind
colors: {
  custom: {
    50: '#85619e',
    500: '#512276',
    950: '#000000',
  },
}
SCSS
$custom: #512276;
$custom-light: #85619e;
$custom-dark: #000000;
JSON
{
  "hex": "#512276",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 273.571,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3644,
    "c": 0.13849,
    "h": 306.3
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#512276
secondary
#74A94B
accent
#DF498B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512276

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

Preview Lab → · Contrast checker → · Palette generator →

#512276 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva