#512264#512264

#512264 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.1% C 0.118 H 314.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#512264
RGBrgb(81, 34, 100)
HSLhsl(283, 49%, 26%)
HSVhsv(283, 66%, 39%)
CMYKcmyk(19%, 66%, 0%, 60.8%)
CIE-LABlab(23.05, 33.68, -29.78)
CIE-LCHlch(23.05, 44.95, 318.51°)
OKLaboklab(35.11% 0.0833 -0.0835)
OKLCHoklch(35.11% 0.118 314.9)
XYZxyz(6.2652, 3.8137, 12.4602)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512264 #356422
analogous
#302264 #512264 #642256
triadic
#512264 #645122 #226451
tetradic
#512264 #643022 #356422 #225664
square
#512264 #643022 #356422 #225664
split-complementary
#512264 #566422 #226430
monochromatic
#120817 #2C1236 #512264 #763292 #9B42BF

Accessibility & contrast

On white

11.91
#512264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#512264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512264
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512264#FFFFFF#000000##FFFFFF
##5122641.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3466
Deuteranopia (green-blind)
#213862
Tritanopia (blue-blind)
#502E3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512264;
/* rgb */ color: rgb(81, 34, 100);
/* oklch */ color: oklch(35.1% 0.118 314.9);
Tailwind
colors: {
  custom: {
    50: '#846090',
    500: '#512264',
    950: '#000000',
  },
}
SCSS
$custom: #512264;
$custom-light: #846090;
$custom-dark: #000000;
JSON
{
  "hex": "#512264",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 100
  },
  "hsl": {
    "h": 282.727,
    "s": 49.254,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35109,
    "c": 0.11795,
    "h": 314.9
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#512264
secondary
#60984A
accent
#D94F77
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #512264

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

Preview Lab → · Contrast checker → · Palette generator →

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