#512367#512367

#512367 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.5% C 0.120 H 313.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#512367
RGBrgb(81, 35, 103)
HSLhsl(281, 49%, 27%)
HSVhsv(281, 66%, 40%)
CMYKcmyk(21.4%, 66%, 0%, 59.6%)
CIE-LABlab(23.44, 33.85, -31.10)
CIE-LCHlch(23.44, 45.97, 317.42°)
OKLaboklab(35.46% 0.0819 -0.0874)
OKLCHoklch(35.46% 0.12 313.1)
XYZxyz(6.4421, 3.9308, 13.2487)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512367 #396723
analogous
#2F2367 #512367 #67235B
triadic
#512367 #675123 #236751
tetradic
#512367 #672F23 #396723 #235B67
square
#512367 #672F23 #396723 #235B67
split-complementary
#512367 #5B6723 #23672F
monochromatic
#120817 #2D1339 #512367 #753395 #9845C0

Accessibility & contrast

On white

11.76
#512367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512367
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512367#FFFFFF#000000##FFFFFF
##5123671.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083569
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#4F3041
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512367;
/* rgb */ color: rgb(81, 35, 103);
/* oklch */ color: oklch(35.5% 0.120 313.1);
Tailwind
colors: {
  custom: {
    50: '#846193',
    500: '#512367',
    950: '#000000',
  },
}
SCSS
$custom: #512367;
$custom-light: #846193;
$custom-dark: #000000;
JSON
{
  "hex": "#512367",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 103
  },
  "hsl": {
    "h": 280.588,
    "s": 49.275,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3546,
    "c": 0.11977,
    "h": 313.1
  },
  "luminance": 0.03931
}

Semantic roles & 50–950 ramp

primary
#512367
secondary
#659B4B
accent
#D94F7C
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #512367

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

Preview Lab → · Contrast checker → · Palette generator →

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