#512365#512365

#512365 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.3% C 0.117 H 314.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#512365
RGBrgb(81, 35, 101)
HSLhsl(282, 49%, 27%)
HSVhsv(282, 65%, 40%)
CMYKcmyk(19.8%, 65.3%, 0%, 60.4%)
CIE-LABlab(23.31, 33.38, -30.01)
CIE-LCHlch(23.31, 44.89, 318.04°)
OKLaboklab(35.32% 0.0819 -0.0842)
OKLCHoklch(35.32% 0.117 314.2)
XYZxyz(6.3429, 3.8912, 12.7263)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512365 #376523
analogous
#302365 #512365 #652358
triadic
#512365 #655123 #236551
tetradic
#512365 #653023 #376523 #235865
square
#512365 #653023 #376523 #235865
split-complementary
#512365 #586523 #236530
monochromatic
#120817 #2D1338 #512365 #753392 #9944BE

Accessibility & contrast

On white

11.81
#512365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512365
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512365#FFFFFF#000000##FFFFFF
##5123651.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3567
Deuteranopia (green-blind)
#213963
Tritanopia (blue-blind)
#4F2F40
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512365;
/* rgb */ color: rgb(81, 35, 101);
/* oklch */ color: oklch(35.3% 0.117 314.2);
Tailwind
colors: {
  custom: {
    50: '#846191',
    500: '#512365',
    950: '#000000',
  },
}
SCSS
$custom: #512365;
$custom-light: #846191;
$custom-dark: #000000;
JSON
{
  "hex": "#512365",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 101
  },
  "hsl": {
    "h": 281.818,
    "s": 48.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35321,
    "c": 0.11748,
    "h": 314.2
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#512365
secondary
#63994B
accent
#D85079
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050D
muted
#7C797D

Preview Lab

Preview with #512365

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

Preview Lab → · Contrast checker → · Palette generator →

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