#5134CF#5134CF

#5134CF is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.222 H 282.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5134CF
RGBrgb(81, 52, 207)
HSLhsl(251, 62%, 51%)
HSVhsv(251, 75%, 81%)
CMYKcmyk(60.9%, 74.9%, 0%, 18.8%)
CIE-LABlab(35.42, 53.76, -75.19)
CIE-LCHlch(35.42, 92.43, 305.56°)
OKLaboklab(46.7% 0.0466 -0.2168)
OKLCHoklch(46.7% 0.222 282.1)
XYZxyz(15.8803, 8.7092, 59.8636)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134CF #B2CF34
analogous
#3464CF #5134CF #9E34CF
triadic
#5134CF #CF5134 #34CF51
tetradic
#5134CF #CF3464 #B2CF34 #34CF9E
square
#5134CF #CF3464 #B2CF34 #34CF9E
split-complementary
#5134CF #CF9E34 #64CF34
monochromatic
#2A1A6E #3D26A0 #5134CF #7B65DB #A697E6

Accessibility & contrast

On white

7.66
#5134CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5134CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134CF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134CF#FFFFFF#000000##FFFFFF
##5134CF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004ECC
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5134cf;
/* rgb */ color: rgb(81, 52, 207);
/* oklch */ color: oklch(46.7% 0.222 282.1);
Tailwind
colors: {
  custom: {
    50: '#916fdf',
    500: '#5134cf',
    950: '#000000',
  },
}
SCSS
$custom: #5134cf;
$custom-light: #916fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5134cf",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 251.226,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.22179,
    "h": 282.1
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#5134CF
secondary
#C5D28D
accent
#E543C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5134CF

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

Preview Lab → · Contrast checker → · Palette generator →

#5134CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva