#512175#512175

#512175 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.139 H 306.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#512175
RGBrgb(81, 33, 117)
HSLhsl(274, 56%, 29%)
HSVhsv(274, 72%, 46%)
CMYKcmyk(30.8%, 71.8%, 0%, 54.1%)
CIE-LABlab(24.07, 38.33, -39.13)
CIE-LCHlch(24.07, 54.77, 314.41°)
OKLaboklab(36.23% 0.0833 -0.1109)
OKLCHoklch(36.23% 0.139 306.9)
XYZxyz(7.1474, 4.1215, 17.2452)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512175 #457521
analogous
#272175 #512175 #75216F
triadic
#512175 #755121 #217551
tetradic
#512175 #752721 #457521 #216F75
square
#512175 #752721 #457521 #216F75
split-complementary
#512175 #6F7521 #217527
monochromatic
#110718 #301445 #512175 #722EA5 #9246CB

Accessibility & contrast

On white

11.51
#512175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#512175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512175
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512175#FFFFFF#000000##FFFFFF
##5121751.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#093A73
Tritanopia (blue-blind)
#4B3448
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512175;
/* rgb */ color: rgb(81, 33, 117);
/* oklch */ color: oklch(36.2% 0.139 306.9);
Tailwind
colors: {
  custom: {
    50: '#85609d',
    500: '#512175',
    950: '#000000',
  },
}
SCSS
$custom: #512175;
$custom-light: #85609d;
$custom-dark: #000000;
JSON
{
  "hex": "#512175",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 274.286,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36232,
    "c": 0.13875,
    "h": 306.9
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#512175
secondary
#72A84A
accent
#DF4989
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512175

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

Preview Lab → · Contrast checker → · Palette generator →

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