#5134DB#5134DB

#5134DB is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.235 H 280.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5134DB
RGBrgb(81, 52, 219)
HSLhsl(250, 70%, 53%)
HSVhsv(250, 76%, 86%)
CMYKcmyk(63%, 76.3%, 0%, 14.1%)
CIE-LABlab(36.59, 57.24, -80.19)
CIE-LCHlch(36.59, 98.52, 305.52°)
OKLaboklab(47.88% 0.0436 -0.2314)
OKLCHoklch(47.88% 0.235 280.7)
XYZxyz(17.4035, 9.3185, 67.8856)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134DB #BEDB34
analogous
#346ADB #5134DB #A434DB
triadic
#5134DB #DB5134 #34DB51
tetradic
#5134DB #DB346A #BEDB34 #34DBA4
square
#5134DB #DB346A #BEDB34 #34DBA4
split-complementary
#5134DB #DBA434 #6ADB34
monochromatic
#28167E #3920B2 #5134DB #7E68E4 #AA9CED

Accessibility & contrast

On white

7.33
#5134DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5134DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134DB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134DB#FFFFFF#000000##FFFFFF
##5134DB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE0
Deuteranopia (green-blind)
#0050D8
Tritanopia (blue-blind)
#006586
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5134db;
/* rgb */ color: rgb(81, 52, 219);
/* oklch */ color: oklch(47.9% 0.235 280.7);
Tailwind
colors: {
  custom: {
    50: '#9370e8',
    500: '#5134db',
    950: '#000000',
  },
}
SCSS
$custom: #5134db;
$custom-light: #9370e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5134db",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 219
  },
  "hsl": {
    "h": 250.419,
    "s": 69.874,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.23548,
    "h": 280.7
  },
  "luminance": 0.0932
}

Semantic roles & 50–950 ramp

primary
#5134DB
secondary
#CDD991
accent
#ED3BCE
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5134DB

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

Preview Lab → · Contrast checker → · Palette generator →

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