#5135BE#5135BE

#5135BE is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.2% C 0.201 H 284.4°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5135BE
RGBrgb(81, 53, 190)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(57.4%, 72.1%, 0%, 25.5%)
CIE-LABlab(34.01, 48.24, -67.58)
CIE-LCHlch(34.01, 83.03, 305.52°)
OKLaboklab(45.23% 0.0498 -0.1946)
OKLCHoklch(45.23% 0.201 284.4)
XYZxyz(13.9579, 8.0124, 49.5163)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135BE #A2BE35
analogous
#355DBE #5135BE #9635BE
triadic
#5135BE #BE5135 #35BE51
tetradic
#5135BE #BE355D #A2BE35 #35BE96
square
#5135BE #BE355D #A2BE35 #35BE96
split-complementary
#5135BE #BE9635 #5DBE35
monochromatic
#281A5E #3D288E #5135BE #765ED2 #9F8EDF

Accessibility & contrast

On white

8.07
#5135BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5135BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135BE
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135BE#FFFFFF#000000##FFFFFF
##5135BE1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#175A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5135be;
/* rgb */ color: rgb(81, 53, 190);
/* oklch */ color: oklch(45.2% 0.201 284.4);
Tailwind
colors: {
  custom: {
    50: '#8e6fd3',
    500: '#5135be',
    950: '#000000',
  },
}
SCSS
$custom: #5135be;
$custom-light: #8e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5135be",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 190
  },
  "hsl": {
    "h": 252.263,
    "s": 56.379,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45225,
    "c": 0.20086,
    "h": 284.4
  },
  "luminance": 0.08013
}

Semantic roles & 50–950 ramp

primary
#5135BE
secondary
#BCCA85
accent
#E048C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5135BE

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

Preview Lab → · Contrast checker → · Palette generator →

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