#5235BE#5235BE

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

Color values

HEX#5235BE
RGBrgb(82, 53, 190)
HSLhsl(253, 56%, 48%)
HSVhsv(253, 72%, 75%)
CMYKcmyk(56.8%, 72.1%, 0%, 25.5%)
CIE-LABlab(34.10, 48.38, -67.42)
CIE-LCHlch(34.10, 82.99, 305.66°)
OKLaboklab(45.31% 0.0512 -0.1941)
OKLCHoklch(45.31% 0.201 284.8)
XYZxyz(14.0442, 8.0569, 49.5203)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235BE #A1BE35
analogous
#355CBE #5235BE #9735BE
triadic
#5235BE #BE5235 #35BE52
tetradic
#5235BE #BE355C #A1BE35 #35BE97
square
#5235BE #BE355C #A1BE35 #35BE97
split-complementary
#5235BE #BE9735 #5CBE35
monochromatic
#291A5E #3D288E #5235BE #775ED2 #9F8EDF

Accessibility & contrast

On white

8.04
#5235BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5235BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235BE
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235BE#FFFFFF#000000##FFFFFF
##5235BE1.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)
#0054C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#1B5A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5235be;
/* rgb */ color: rgb(82, 53, 190);
/* oklch */ color: oklch(45.3% 0.201 284.8);
Tailwind
colors: {
  custom: {
    50: '#8e6fd3',
    500: '#5235be',
    950: '#000000',
  },
}
SCSS
$custom: #5235be;
$custom-light: #8e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5235be",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 190
  },
  "hsl": {
    "h": 252.701,
    "s": 56.379,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45313,
    "c": 0.20074,
    "h": 284.8
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#5235BE
secondary
#BBCA85
accent
#E048C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5235BE

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

Preview Lab → · Contrast checker → · Palette generator →

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