#512FDF#512FDF

#512FDF is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.244 H 280.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#512FDF
RGBrgb(81, 47, 223)
HSLhsl(252, 73%, 53%)
HSVhsv(252, 79%, 87%)
CMYKcmyk(63.7%, 78.9%, 0%, 12.5%)
CIE-LABlab(36.19, 60.69, -83.14)
CIE-LCHlch(36.19, 102.93, 306.13°)
OKLaboklab(47.72% 0.0452 -0.2399)
OKLCHoklch(47.72% 0.244 280.7)
XYZxyz(17.7249, 9.1087, 70.6218)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FDF #BDDF2F
analogous
#2F65DF #512FDF #A92FDF
triadic
#512FDF #DF512F #2FDF51
tetradic
#512FDF #DF2F65 #BDDF2F #2FDFA9
square
#512FDF #DF2F65 #BDDF2F #2FDFA9
split-complementary
#512FDF #DFA92F #65DF2F
monochromatic
#291480 #391CB5 #512FDF #7D64E7 #AA99EF

Accessibility & contrast

On white

7.44
#512FDF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#512FDF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FDF
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FDF#FFFFFF#000000##FFFFFF
##512FDF1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE4
Deuteranopia (green-blind)
#004EDC
Tritanopia (blue-blind)
#006588
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #512fdf;
/* rgb */ color: rgb(81, 47, 223);
/* oklch */ color: oklch(47.7% 0.244 280.7);
Tailwind
colors: {
  custom: {
    50: '#946dea',
    500: '#512fdf',
    950: '#000000',
  },
}
SCSS
$custom: #512fdf;
$custom-light: #946dea;
$custom-dark: #000000;
JSON
{
  "hex": "#512fdf",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 223
  },
  "hsl": {
    "h": 251.591,
    "s": 73.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4772,
    "c": 0.24417,
    "h": 280.7
  },
  "luminance": 0.0911
}

Semantic roles & 50–950 ramp

primary
#512FDF
secondary
#CCDB8F
accent
#F038CC
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #512FDF

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

Preview Lab → · Contrast checker → · Palette generator →

#512FDF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva