#512391#512391

#512391 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.168 H 296.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#512391
RGBrgb(81, 35, 145)
HSLhsl(265, 61%, 35%)
HSVhsv(265, 76%, 57%)
CMYKcmyk(44.1%, 75.9%, 0%, 43.1%)
CIE-LABlab(26.72, 44.62, -52.41)
CIE-LCHlch(26.72, 68.83, 310.42°)
OKLaboklab(38.83% 0.0757 -0.15)
OKLCHoklch(38.83% 0.168 296.8)
XYZxyz(9.1039, 4.9955, 27.2672)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512391 #639123
analogous
#232C91 #512391 #882391
triadic
#512391 #915123 #239151
tetradic
#512391 #91232C #639123 #239188
square
#512391 #91232C #639123 #239188
split-complementary
#512391 #918823 #2C9123
monochromatic
#1A0B2E #351760 #512391 #6D2FC2 #8D58D7

Accessibility & contrast

On white

10.50
#512391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#512391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512391
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512391#FFFFFF#000000##FFFFFF
##5123911.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#404058
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512391;
/* rgb */ color: rgb(81, 35, 145);
/* oklch */ color: oklch(38.8% 0.168 296.8);
Tailwind
colors: {
  custom: {
    50: '#8863b2',
    500: '#512391',
    950: '#000000',
  },
}
SCSS
$custom: #512391;
$custom-light: #8863b2;
$custom-dark: #000000;
JSON
{
  "hex": "#512391",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 265.091,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38834,
    "c": 0.16801,
    "h": 296.8
  },
  "luminance": 0.04996
}

Semantic roles & 50–950 ramp

primary
#512391
secondary
#90BB55
accent
#E444A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512391

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

Preview Lab → · Contrast checker → · Palette generator →

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