#5834B2#5834B2

#5834B2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.187 H 289.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5834B2
RGBrgb(88, 52, 178)
HSLhsl(257, 55%, 45%)
HSVhsv(257, 71%, 70%)
CMYKcmyk(50.6%, 70.8%, 0%, 30.2%)
CIE-LABlab(33.45, 46.37, -61.38)
CIE-LCHlch(33.45, 76.92, 307.07°)
OKLaboklab(44.66% 0.0632 -0.1762)
OKLCHoklch(44.66% 0.187 289.7)
XYZxyz(13.2861, 7.7445, 42.9056)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5834B2 #8EB234
analogous
#344FB2 #5834B2 #9734B2
triadic
#5834B2 #B25834 #34B258
tetradic
#5834B2 #B2344F #8EB234 #34B297
square
#5834B2 #B2344F #8EB234 #34B297
split-complementary
#5834B2 #B29734 #4FB234
monochromatic
#291853 #412683 #5834B2 #7856CE #9E85DB

Accessibility & contrast

On white

8.24
#5834B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5834B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5834B2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5834B2#FFFFFF#000000##FFFFFF
##5834B21.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#39556F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5834b2;
/* rgb */ color: rgb(88, 52, 178);
/* oklch */ color: oklch(44.7% 0.187 289.7);
Tailwind
colors: {
  custom: {
    50: '#906eca',
    500: '#5834b2',
    950: '#000000',
  },
}
SCSS
$custom: #5834b2;
$custom-light: #906eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5834b2",
  "rgb": {
    "r": 88,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 257.143,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44664,
    "c": 0.18715,
    "h": 289.7
  },
  "luminance": 0.07745
}

Semantic roles & 50–950 ramp

primary
#5834B2
secondary
#B0C57D
accent
#DE4AB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5834B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5834B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva