#5338B2#5338B2

#5338B2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.183 H 286.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5338B2
RGBrgb(83, 56, 178)
HSLhsl(253, 52%, 46%)
HSVhsv(253, 69%, 70%)
CMYKcmyk(53.4%, 68.5%, 0%, 30.2%)
CIE-LABlab(33.73, 43.34, -60.93)
CIE-LCHlch(33.73, 74.77, 305.43°)
OKLaboklab(44.75% 0.0523 -0.175)
OKLCHoklch(44.75% 0.183 286.6)
XYZxyz(13.0149, 7.8810, 42.9463)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338B2 #97B238
analogous
#385AB2 #5338B2 #9038B2
triadic
#5338B2 #B25338 #38B253
tetradic
#5338B2 #B2385A #97B238 #38B290
square
#5338B2 #B2385A #97B238 #38B290
split-complementary
#5338B2 #B29038 #5AB238
monochromatic
#281B55 #3D2983 #5338B2 #745CCC #9C8ADA

Accessibility & contrast

On white

8.15
#5338B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5338B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5338B2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5338B2#FFFFFF#000000##FFFFFF
##5338B21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#2D5770
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5338b2;
/* rgb */ color: rgb(83, 56, 178);
/* oklch */ color: oklch(44.8% 0.183 286.6);
Tailwind
colors: {
  custom: {
    50: '#8d71ca',
    500: '#5338b2',
    950: '#000000',
  },
}
SCSS
$custom: #5338b2;
$custom-light: #8d71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5338b2",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 253.279,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44751,
    "c": 0.18267,
    "h": 286.6
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#5338B2
secondary
#B6C581
accent
#DC4CBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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