#5135BF#5135BF

#5135BF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.3% C 0.202 H 284.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5135BF
RGBrgb(81, 53, 191)
HSLhsl(252, 57%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(57.6%, 72.3%, 0%, 25.1%)
CIE-LABlab(34.10, 48.53, -68.02)
CIE-LCHlch(34.10, 83.56, 305.51°)
OKLaboklab(45.32% 0.0496 -0.1959)
OKLCHoklch(45.32% 0.202 284.2)
XYZxyz(14.0675, 8.0563, 50.0938)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135BF #A3BF35
analogous
#355EBF #5135BF #9635BF
triadic
#5135BF #BF5135 #35BF51
tetradic
#5135BF #BF355E #A3BF35 #35BF96
square
#5135BF #BF355E #A3BF35 #35BF96
split-complementary
#5135BF #BF9635 #5EBF35
monochromatic
#281A5F #3D288F #5135BF #765FD3 #9F8FE0

Accessibility & contrast

On white

8.04
#5135BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5135BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135BF
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135BF#FFFFFF#000000##FFFFFF
##5135BF1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#155B77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5135bf;
/* rgb */ color: rgb(81, 53, 191);
/* oklch */ color: oklch(45.3% 0.202 284.2);
Tailwind
colors: {
  custom: {
    50: '#8e6fd3',
    500: '#5135bf',
    950: '#000000',
  },
}
SCSS
$custom: #5135bf;
$custom-light: #8e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5135bf",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 191
  },
  "hsl": {
    "h": 252.174,
    "s": 56.557,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45318,
    "c": 0.20205,
    "h": 284.2
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5135BF

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

Preview Lab → · Contrast checker → · Palette generator →

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