#5235BC#5235BC

#5235BC is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.198 H 285.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5235BC
RGBrgb(82, 53, 188)
HSLhsl(253, 56%, 47%)
HSVhsv(253, 72%, 74%)
CMYKcmyk(56.4%, 71.8%, 0%, 26.3%)
CIE-LABlab(33.92, 47.79, -66.54)
CIE-LCHlch(33.92, 81.93, 305.69°)
OKLaboklab(45.13% 0.0516 -0.1915)
OKLCHoklch(45.13% 0.198 285.1)
XYZxyz(13.8271, 7.9701, 48.3770)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235BC #9FBC35
analogous
#355BBC #5235BC #9635BC
triadic
#5235BC #BC5235 #35BC52
tetradic
#5235BC #BC355B #9FBC35 #35BC96
square
#5235BC #BC355B #9FBC35 #35BC96
split-complementary
#5235BC #BC9635 #5BBC35
monochromatic
#281A5D #3D288C #5235BC #765DD1 #9E8DDF

Accessibility & contrast

On white

8.09
#5235BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5235BC
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235BC#FFFFFF#000000##FFFFFF
##5235BC1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#1E5975
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5235bc;
/* rgb */ color: rgb(82, 53, 188);
/* oklch */ color: oklch(45.1% 0.198 285.1);
Tailwind
colors: {
  custom: {
    50: '#8e6fd1',
    500: '#5235bc',
    950: '#000000',
  },
}
SCSS
$custom: #5235bc;
$custom-light: #8e6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5235bc",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 188
  },
  "hsl": {
    "h": 252.889,
    "s": 56.017,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4513,
    "c": 0.19836,
    "h": 285.1
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#5235BC
secondary
#BAC984
accent
#DF48BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5235BC

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

Preview Lab → · Contrast checker → · Palette generator →

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