#512FD3#512FD3

#512FD3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.231 H 282.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#512FD3
RGBrgb(81, 47, 211)
HSLhsl(252, 65%, 51%)
HSVhsv(252, 78%, 83%)
CMYKcmyk(61.6%, 77.7%, 0%, 17.3%)
CIE-LABlab(34.97, 57.31, -78.24)
CIE-LCHlch(34.97, 96.99, 306.22°)
OKLaboklab(46.51% 0.0486 -0.2257)
OKLCHoklch(46.51% 0.231 282.2)
XYZxyz(16.1641, 8.4843, 62.4012)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FD3 #B1D32F
analogous
#2F5FD3 #512FD3 #A32FD3
triadic
#512FD3 #D3512F #2FD351
tetradic
#512FD3 #D32F5F #B1D32F #2FD3A3
square
#512FD3 #D32F5F #B1D32F #2FD3A3
split-complementary
#512FD3 #D3A32F #5FD32F
monochromatic
#2A1870 #3D22A2 #512FD3 #7B62DE #A694E8

Accessibility & contrast

On white

7.79
#512FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#512FD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FD3
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FD3#FFFFFF#000000##FFFFFF
##512FD31.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D8
Deuteranopia (green-blind)
#004CD0
Tritanopia (blue-blind)
#006081
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #512fd3;
/* rgb */ color: rgb(81, 47, 211);
/* oklch */ color: oklch(46.5% 0.231 282.2);
Tailwind
colors: {
  custom: {
    50: '#926de2',
    500: '#512fd3',
    950: '#000000',
  },
}
SCSS
$custom: #512fd3;
$custom-light: #926de2;
$custom-dark: #000000;
JSON
{
  "hex": "#512fd3",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 252.439,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46509,
    "c": 0.23087,
    "h": 282.2
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#512FD3
secondary
#C4D38A
accent
#E840C5
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #512FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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