#5235BB#5235BB

#5235BB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.197 H 285.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5235BB
RGBrgb(82, 53, 187)
HSLhsl(253, 56%, 47%)
HSVhsv(253, 72%, 73%)
CMYKcmyk(56.1%, 71.7%, 0%, 26.7%)
CIE-LABlab(33.83, 47.50, -66.10)
CIE-LCHlch(33.83, 81.40, 305.70°)
OKLaboklab(45.04% 0.0518 -0.1902)
OKLCHoklch(45.04% 0.197 285.2)
XYZxyz(13.7197, 7.9271, 47.8112)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235BB #9EBB35
analogous
#355BBB #5235BB #9535BB
triadic
#5235BB #BB5235 #35BB52
tetradic
#5235BB #BB355B #9EBB35 #35BB95
square
#5235BB #BB355B #9EBB35 #35BB95
split-complementary
#5235BB #BB9535 #5BBB35
monochromatic
#281A5C #3D278B #5235BB #765CD1 #9E8CDE

Accessibility & contrast

On white

8.12
#5235BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5235BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235BB
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235BB#FFFFFF#000000##FFFFFF
##5235BB1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#205974
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5235bb;
/* rgb */ color: rgb(82, 53, 187);
/* oklch */ color: oklch(45.0% 0.197 285.2);
Tailwind
colors: {
  custom: {
    50: '#8e6fd1',
    500: '#5235bb',
    950: '#000000',
  },
}
SCSS
$custom: #5235bb;
$custom-light: #8e6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5235bb",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 252.985,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45039,
    "c": 0.19716,
    "h": 285.2
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#5235BB
secondary
#BAC983
accent
#DF49BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5235BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5235BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva