#512368#512368

#512368 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.5% C 0.121 H 312.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#512368
RGBrgb(81, 35, 104)
HSLhsl(280, 50%, 27%)
HSVhsv(280, 66%, 41%)
CMYKcmyk(22.1%, 66.3%, 0%, 59.2%)
CIE-LABlab(23.51, 34.10, -31.65)
CIE-LCHlch(23.51, 46.52, 317.13°)
OKLaboklab(35.53% 0.0819 -0.089)
OKLCHoklch(35.53% 0.121 312.6)
XYZxyz(6.4926, 3.9510, 13.5146)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512368 #3A6823
analogous
#2F2368 #512368 #68235D
triadic
#512368 #685123 #236851
tetradic
#512368 #682F23 #3A6823 #235D68
square
#512368 #682F23 #3A6823 #235D68
split-complementary
#512368 #5D6823 #23682F
monochromatic
#120817 #2D143A #512368 #753296 #9745C0

Accessibility & contrast

On white

11.73
#512368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#512368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512368
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512368#FFFFFF#000000##FFFFFF
##5123681.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06366A
Deuteranopia (green-blind)
#1E3966
Tritanopia (blue-blind)
#4F3042
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512368;
/* rgb */ color: rgb(81, 35, 104);
/* oklch */ color: oklch(35.5% 0.121 312.6);
Tailwind
colors: {
  custom: {
    50: '#846193',
    500: '#512368',
    950: '#000000',
  },
}
SCSS
$custom: #512368;
$custom-light: #846193;
$custom-dark: #000000;
JSON
{
  "hex": "#512368",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 104
  },
  "hsl": {
    "h": 280,
    "s": 49.64,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.12092,
    "h": 312.6
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#512368
secondary
#669B4B
accent
#D94F7D
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #512368

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

Preview Lab → · Contrast checker → · Palette generator →

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