#512195#512195

#512195 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.175 H 295.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#512195
RGBrgb(81, 33, 149)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(45.6%, 77.9%, 0%, 41.6%)
CIE-LABlab(26.75, 46.62, -54.82)
CIE-LCHlch(26.75, 71.96, 310.38°)
OKLaboklab(38.97% 0.0764 -0.1571)
OKLCHoklch(38.97% 0.175 295.9)
XYZxyz(9.3606, 5.0067, 28.9012)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512195 #659521
analogous
#212B95 #512195 #8B2195
triadic
#512195 #955121 #219551
tetradic
#512195 #95212B #659521 #21958B
square
#512195 #95212B #659521 #21958B
split-complementary
#512195 #958B21 #2B9521
monochromatic
#1B0B31 #361663 #512195 #6C2CC7 #8D57DA

Accessibility & contrast

On white

10.49
#512195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512195
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512195#FFFFFF#000000##FFFFFF
##5121951.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#3E415A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512195;
/* rgb */ color: rgb(81, 33, 149);
/* oklch */ color: oklch(39.0% 0.175 295.9);
Tailwind
colors: {
  custom: {
    50: '#8962b5',
    500: '#512195',
    950: '#000000',
  },
}
SCSS
$custom: #512195;
$custom-light: #8962b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512195",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 264.828,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38967,
    "c": 0.17466,
    "h": 295.9
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#512195
secondary
#92BE54
accent
#E741A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512195

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

Preview Lab → · Contrast checker → · Palette generator →

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