#512273#512273

#512273 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.135 H 307.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#512273
RGBrgb(81, 34, 115)
HSLhsl(275, 54%, 29%)
HSVhsv(275, 70%, 45%)
CMYKcmyk(29.6%, 70.4%, 0%, 54.9%)
CIE-LABlab(24.10, 37.32, -37.79)
CIE-LCHlch(24.10, 53.12, 314.64°)
OKLaboklab(36.21% 0.0824 -0.107)
OKLCHoklch(36.21% 0.135 307.6)
XYZxyz(7.0592, 4.1313, 16.6419)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512273 #447322
analogous
#292273 #512273 #73226D
triadic
#512273 #735122 #227351
tetradic
#512273 #732922 #447322 #226D73
square
#512273 #732922 #447322 #226D73
split-complementary
#512273 #6D7322 #227329
monochromatic
#110718 #301444 #512273 #7230A2 #9247C9

Accessibility & contrast

On white

11.50
#512273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#512273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512273
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512273#FFFFFF#000000##FFFFFF
##5122731.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003875
Deuteranopia (green-blind)
#0F3A71
Tritanopia (blue-blind)
#4C3447
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512273;
/* rgb */ color: rgb(81, 34, 115);
/* oklch */ color: oklch(36.2% 0.135 307.6);
Tailwind
colors: {
  custom: {
    50: '#85619c',
    500: '#512273',
    950: '#000000',
  },
}
SCSS
$custom: #512273;
$custom-light: #85619c;
$custom-dark: #000000;
JSON
{
  "hex": "#512273",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 274.815,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.13506,
    "h": 307.6
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#512273
secondary
#71A64B
accent
#DE4A88
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512273

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

Preview Lab → · Contrast checker → · Palette generator →

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