#512388#512388

#512388 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.158 H 299.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#512388
RGBrgb(81, 35, 136)
HSLhsl(267, 59%, 34%)
HSVhsv(267, 74%, 53%)
CMYKcmyk(40.4%, 74.3%, 0%, 46.7%)
CIE-LABlab(25.95, 42.23, -48.08)
CIE-LCHlch(25.95, 63.99, 311.30°)
OKLaboklab(38.05% 0.0778 -0.1373)
OKLCHoklch(38.05% 0.158 299.5)
XYZxyz(8.4372, 4.7289, 23.7560)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512388 #5A8823
analogous
#232788 #512388 #832388
triadic
#512388 #885123 #238851
tetradic
#512388 #882327 #5A8823 #238883
square
#512388 #882327 #5A8823 #238883
split-complementary
#512388 #888323 #278823
monochromatic
#170A27 #341657 #512388 #6E30B9 #8D53D3

Accessibility & contrast

On white

10.79
#512388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#512388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512388
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512388#FFFFFF#000000##FFFFFF
##5123881.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#443C53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512388;
/* rgb */ color: rgb(81, 35, 136);
/* oklch */ color: oklch(38.0% 0.158 299.5);
Tailwind
colors: {
  custom: {
    50: '#8762ab',
    500: '#512388',
    950: '#000000',
  },
}
SCSS
$custom: #512388;
$custom-light: #8762ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512388",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 267.327,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38047,
    "c": 0.15777,
    "h": 299.5
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#512388
secondary
#88B750
accent
#E2469B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512388

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

Preview Lab → · Contrast checker → · Palette generator →

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