#5135D7#5135D7

#5135D7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.230 H 281.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5135D7
RGBrgb(81, 53, 215)
HSLhsl(250, 67%, 53%)
HSVhsv(250, 75%, 84%)
CMYKcmyk(62.3%, 75.3%, 0%, 15.7%)
CIE-LABlab(36.37, 55.59, -78.25)
CIE-LCHlch(36.37, 95.99, 305.39°)
OKLaboklab(47.6% 0.044 -0.2258)
OKLCHoklch(47.6% 0.23 281)
XYZxyz(16.9283, 9.2006, 65.1606)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135D7 #BBD735
analogous
#356AD7 #5135D7 #A235D7
triadic
#5135D7 #D75135 #35D751
tetradic
#5135D7 #D7356A #BBD735 #35D7A2
square
#5135D7 #D7356A #BBD735 #35D7A2
split-complementary
#5135D7 #D7A235 #6AD735
monochromatic
#29187A #3A22AD #5135D7 #7D68E1 #A99BEB

Accessibility & contrast

On white

7.39
#5135D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5135D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135D7
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135D7#FFFFFF#000000##FFFFFF
##5135D71.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006484
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5135d7;
/* rgb */ color: rgb(81, 53, 215);
/* oklch */ color: oklch(47.6% 0.230 281.0);
Tailwind
colors: {
  custom: {
    50: '#9270e5',
    500: '#5135d7',
    950: '#000000',
  },
}
SCSS
$custom: #5135d7;
$custom-light: #9270e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5135d7",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 215
  },
  "hsl": {
    "h": 250.37,
    "s": 66.942,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47603,
    "c": 0.23003,
    "h": 281
  },
  "luminance": 0.09202
}

Semantic roles & 50–950 ramp

primary
#5135D7
secondary
#CBD791
accent
#EA3ECC
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5135D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5135D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva