#512274#512274

#512274 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.136 H 307.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#512274
RGBrgb(81, 34, 116)
HSLhsl(274, 55%, 29%)
HSVhsv(274, 71%, 45%)
CMYKcmyk(30.2%, 70.7%, 0%, 54.5%)
CIE-LABlab(24.18, 37.58, -38.31)
CIE-LCHlch(24.18, 53.66, 314.44°)
OKLaboklab(36.28% 0.0823 -0.1086)
OKLCHoklch(36.28% 0.136 307.1)
XYZxyz(7.1171, 4.1544, 16.9466)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512274 #457422
analogous
#282274 #512274 #74226E
triadic
#512274 #745122 #227451
tetradic
#512274 #742822 #457422 #226E74
square
#512274 #742822 #457422 #226E74
split-complementary
#512274 #6E7422 #227428
monochromatic
#110718 #301445 #512274 #7230A3 #9247C9

Accessibility & contrast

On white

11.47
#512274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#512274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512274
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512274#FFFFFF#000000##FFFFFF
##5122741.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#0D3A72
Tritanopia (blue-blind)
#4B3448
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512274;
/* rgb */ color: rgb(81, 34, 116);
/* oklch */ color: oklch(36.3% 0.136 307.1);
Tailwind
colors: {
  custom: {
    50: '#85619d',
    500: '#512274',
    950: '#000000',
  },
}
SCSS
$custom: #512274;
$custom-light: #85619d;
$custom-dark: #000000;
JSON
{
  "hex": "#512274",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 274.39,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36284,
    "c": 0.13621,
    "h": 307.1
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#512274
secondary
#72A74B
accent
#DE4A89
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512274

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

Preview Lab → · Contrast checker → · Palette generator →

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