#5134C2#5134C2

#5134C2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.207 H 283.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5134C2
RGBrgb(81, 52, 194)
HSLhsl(252, 58%, 48%)
HSVhsv(252, 73%, 76%)
CMYKcmyk(58.2%, 73.2%, 0%, 23.9%)
CIE-LABlab(34.19, 49.95, -69.63)
CIE-LCHlch(34.19, 85.69, 305.65°)
OKLaboklab(45.47% 0.0497 -0.2006)
OKLCHoklch(45.47% 0.207 283.9)
XYZxyz(14.3559, 8.0994, 51.8353)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134C2 #A5C234
analogous
#345EC2 #5134C2 #9834C2
triadic
#5134C2 #C25134 #34C251
tetradic
#5134C2 #C2345E #A5C234 #34C298
square
#5134C2 #C2345E #A5C234 #34C298
split-complementary
#5134C2 #C29834 #5EC234
monochromatic
#291A61 #3D2792 #5134C2 #775FD4 #A08FE1

Accessibility & contrast

On white

8.02
#5134C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5134C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134C2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134C2#FFFFFF#000000##FFFFFF
##5134C21.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#0E5B78
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5134c2;
/* rgb */ color: rgb(81, 52, 194);
/* oklch */ color: oklch(45.5% 0.207 283.9);
Tailwind
colors: {
  custom: {
    50: '#8e6fd6',
    500: '#5134c2',
    950: '#000000',
  },
}
SCSS
$custom: #5134c2;
$custom-light: #8e6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5134c2",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 252.254,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45465,
    "c": 0.20665,
    "h": 283.9
  },
  "luminance": 0.081
}

Semantic roles & 50–950 ramp

primary
#5134C2
secondary
#BDCC86
accent
#E147C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5134C2

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

Preview Lab → · Contrast checker → · Palette generator →

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