#512294#512294

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

Color values

HEX#512294
RGBrgb(81, 34, 148)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 77%, 58%)
CMYKcmyk(45.3%, 77%, 0%, 42%)
CIE-LABlab(26.82, 45.89, -54.09)
CIE-LCHlch(26.82, 70.93, 310.31°)
OKLaboklab(38.99% 0.0758 -0.1549)
OKLCHoklch(38.99% 0.172 296.1)
XYZxyz(9.3092, 5.0313, 28.4919)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512294 #659422
analogous
#222C94 #512294 #8A2294
triadic
#512294 #945122 #229451
tetradic
#512294 #94222C #659422 #22948A
square
#512294 #94222C #659422 #22948A
split-complementary
#512294 #948A22 #2C9422
monochromatic
#1B0B30 #361762 #512294 #6C2DC6 #8D58D9

Accessibility & contrast

On white

10.47
#512294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512294
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512294#FFFFFF#000000##FFFFFF
##5122941.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#3F415A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512294;
/* rgb */ color: rgb(81, 34, 148);
/* oklch */ color: oklch(39.0% 0.172 296.1);
Tailwind
colors: {
  custom: {
    50: '#8962b4',
    500: '#512294',
    950: '#000000',
  },
}
SCSS
$custom: #512294;
$custom-light: #8962b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512294",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 264.737,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38988,
    "c": 0.17247,
    "h": 296.1
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#512294
secondary
#92BD55
accent
#E642A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512294

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

Preview Lab → · Contrast checker → · Palette generator →

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