#5135DC#5135DC

#5135DC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.236 H 280.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5135DC
RGBrgb(81, 53, 220)
HSLhsl(250, 70%, 54%)
HSVhsv(250, 76%, 86%)
CMYKcmyk(63.2%, 75.9%, 0%, 13.7%)
CIE-LABlab(36.86, 57.05, -80.32)
CIE-LCHlch(36.86, 98.52, 305.39°)
OKLaboklab(48.09% 0.0428 -0.2318)
OKLCHoklch(48.09% 0.236 280.5)
XYZxyz(17.5806, 9.4615, 68.5961)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135DC #C0DC35
analogous
#356CDC #5135DC #A435DC
triadic
#5135DC #DC5135 #35DC51
tetradic
#5135DC #DC356C #C0DC35 #35DCA4
square
#5135DC #DC356C #C0DC35 #35DCA4
split-complementary
#5135DC #DCA435 #6CDC35
monochromatic
#281680 #381FB5 #5135DC #7E69E5 #AB9DEE

Accessibility & contrast

On white

7.26
#5135DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5135DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135DC
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135DC#FFFFFF#000000##FFFFFF
##5135DC1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5135dc;
/* rgb */ color: rgb(81, 53, 220);
/* oklch */ color: oklch(48.1% 0.236 280.5);
Tailwind
colors: {
  custom: {
    50: '#9370e8',
    500: '#5135dc',
    950: '#000000',
  },
}
SCSS
$custom: #5135dc;
$custom-light: #9370e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5135dc",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 220
  },
  "hsl": {
    "h": 250.06,
    "s": 70.464,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48094,
    "c": 0.23572,
    "h": 280.5
  },
  "luminance": 0.09463
}

Semantic roles & 50–950 ramp

primary
#5135DC
secondary
#CEDA93
accent
#ED3BCF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5135DC

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

Preview Lab → · Contrast checker → · Palette generator →

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