#512272#512272

#512272 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.134 H 308.0°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#512272
RGBrgb(81, 34, 114)
HSLhsl(275, 54%, 29%)
HSVhsv(275, 70%, 45%)
CMYKcmyk(28.9%, 70.2%, 0%, 55.3%)
CIE-LABlab(24.03, 37.07, -37.27)
CIE-LCHlch(24.03, 52.57, 314.85°)
OKLaboklab(36.13% 0.0825 -0.1055)
OKLCHoklch(36.13% 0.134 308)
XYZxyz(7.0020, 4.1084, 16.3405)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512272 #437222
analogous
#292272 #512272 #72226B
triadic
#512272 #725122 #227251
tetradic
#512272 #722922 #437222 #226B72
square
#512272 #722922 #437222 #226B72
split-complementary
#512272 #6B7222 #227229
monochromatic
#110718 #301443 #512272 #7230A1 #9346C8

Accessibility & contrast

On white

11.53
#512272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#512272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512272
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512272#FFFFFF#000000##FFFFFF
##5122721.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#113A70
Tritanopia (blue-blind)
#4C3347
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512272;
/* rgb */ color: rgb(81, 34, 114);
/* oklch */ color: oklch(36.1% 0.134 308.0);
Tailwind
colors: {
  custom: {
    50: '#85619b',
    500: '#512272',
    950: '#000000',
  },
}
SCSS
$custom: #512272;
$custom-light: #85619b;
$custom-dark: #000000;
JSON
{
  "hex": "#512272",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 275.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3613,
    "c": 0.13392,
    "h": 308
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#512272
secondary
#70A54B
accent
#DD4A87
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512272

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

Preview Lab → · Contrast checker → · Palette generator →

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