#512366#512366

#512366 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.4% C 0.119 H 313.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#512366
RGBrgb(81, 35, 102)
HSLhsl(281, 49%, 27%)
HSVhsv(281, 66%, 40%)
CMYKcmyk(20.6%, 65.7%, 0%, 60%)
CIE-LABlab(23.37, 33.61, -30.56)
CIE-LCHlch(23.37, 45.43, 317.73°)
OKLaboklab(35.39% 0.0819 -0.0858)
OKLCHoklch(35.39% 0.119 313.7)
XYZxyz(6.3922, 3.9109, 12.9859)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512366 #386623
analogous
#302366 #512366 #66235A
triadic
#512366 #665123 #236651
tetradic
#512366 #663023 #386623 #235A66
square
#512366 #663023 #386623 #235A66
split-complementary
#512366 #5A6623 #236630
monochromatic
#120817 #2D1338 #512366 #753394 #9944BF

Accessibility & contrast

On white

11.78
#512366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#512366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512366
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512366#FFFFFF#000000##FFFFFF
##5123661.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3568
Deuteranopia (green-blind)
#203964
Tritanopia (blue-blind)
#4F2F41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512366;
/* rgb */ color: rgb(81, 35, 102);
/* oklch */ color: oklch(35.4% 0.119 313.7);
Tailwind
colors: {
  custom: {
    50: '#846192',
    500: '#512366',
    950: '#000000',
  },
}
SCSS
$custom: #512366;
$custom-light: #846192;
$custom-dark: #000000;
JSON
{
  "hex": "#512366",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 102
  },
  "hsl": {
    "h": 281.194,
    "s": 48.905,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3539,
    "c": 0.11863,
    "h": 313.7
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#512366
secondary
#649A4B
accent
#D84F7A
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #512366

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

Preview Lab → · Contrast checker → · Palette generator →

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