#512383#512383

#512383 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.152 H 301.2°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#512383
RGBrgb(81, 35, 131)
HSLhsl(269, 58%, 33%)
HSVhsv(269, 73%, 51%)
CMYKcmyk(38.2%, 73.3%, 0%, 48.6%)
CIE-LABlab(25.53, 40.92, -45.62)
CIE-LCHlch(25.53, 61.28, 311.89°)
OKLaboklab(37.62% 0.0788 -0.1301)
OKLCHoklch(37.62% 0.152 301.2)
XYZxyz(8.0901, 4.5900, 21.9281)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512383 #558323
analogous
#232583 #512383 #812383
triadic
#512383 #835123 #238351
tetradic
#512383 #832325 #558323 #238381
square
#512383 #832325 #558323 #238381
split-complementary
#512383 #838123 #258323
monochromatic
#150922 #331653 #512383 #6F30B3 #8E50D0

Accessibility & contrast

On white

10.95
#512383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#512383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512383
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512383#FFFFFF#000000##FFFFFF
##5123831.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#463A50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512383;
/* rgb */ color: rgb(81, 35, 131);
/* oklch */ color: oklch(37.6% 0.152 301.2);
Tailwind
colors: {
  custom: {
    50: '#8762a8',
    500: '#512383',
    950: '#000000',
  },
}
SCSS
$custom: #512383;
$custom-light: #8762a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512383",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 268.75,
    "s": 57.831,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37624,
    "c": 0.15206,
    "h": 301.2
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#512383
secondary
#83B44E
accent
#E14797
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512383

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

Preview Lab → · Contrast checker → · Palette generator →

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