#5134DD#5134DD

#5134DD is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.238 H 280.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5134DD
RGBrgb(81, 52, 221)
HSLhsl(250, 71%, 54%)
HSVhsv(250, 76%, 87%)
CMYKcmyk(63.3%, 76.5%, 0%, 13.3%)
CIE-LABlab(36.79, 57.82, -81.01)
CIE-LCHlch(36.79, 99.52, 305.52°)
OKLaboklab(48.08% 0.0431 -0.2338)
OKLCHoklch(48.08% 0.238 280.4)
XYZxyz(17.6683, 9.4244, 69.2806)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134DD #C0DD34
analogous
#346BDD #5134DD #A534DD
triadic
#5134DD #DD5134 #34DD51
tetradic
#5134DD #DD346B #C0DD34 #34DDA5
square
#5134DD #DD346B #C0DD34 #34DDA5
split-complementary
#5134DD #DDA534 #6BDD34
monochromatic
#281681 #381EB5 #5134DD #7E68E6 #AB9DEF

Accessibility & contrast

On white

7.28
#5134DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5134DD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134DD
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134DD#FFFFFF#000000##FFFFFF
##5134DD1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE2
Deuteranopia (green-blind)
#0050DA
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5134dd;
/* rgb */ color: rgb(81, 52, 221);
/* oklch */ color: oklch(48.1% 0.238 280.4);
Tailwind
colors: {
  custom: {
    50: '#9370e9',
    500: '#5134dd',
    950: '#000000',
  },
}
SCSS
$custom: #5134dd;
$custom-light: #9370e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5134dd",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 221
  },
  "hsl": {
    "h": 250.296,
    "s": 71.308,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48075,
    "c": 0.23774,
    "h": 280.4
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#5134DD
secondary
#CEDB92
accent
#EE3ACF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5134DD

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

Preview Lab → · Contrast checker → · Palette generator →

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