#5338AA#5338AA

#5338AA is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.1% C 0.173 H 288.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5338AA
RGBrgb(83, 56, 170)
HSLhsl(254, 50%, 44%)
HSVhsv(254, 67%, 67%)
CMYKcmyk(51.2%, 67.1%, 0%, 33.3%)
CIE-LABlab(33.07, 40.96, -57.24)
CIE-LCHlch(33.07, 70.38, 305.58°)
OKLaboklab(44.07% 0.0535 -0.1642)
OKLCHoklch(44.07% 0.173 288)
XYZxyz(12.2350, 7.5691, 38.8387)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338AA #8FAA38
analogous
#3856AA #5338AA #8C38AA
triadic
#5338AA #AA5338 #38AA53
tetradic
#5338AA #AA3856 #8FAA38 #38AA8C
square
#5338AA #AA3856 #8FAA38 #38AA8C
split-complementary
#5338AA #AA8C38 #56AA38
monochromatic
#261A4E #3D297C #5338AA #7257C8 #9985D7

Accessibility & contrast

On white

8.35
#5338AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5338AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5338AA#FFFFFF#000000##FFFFFF
##5338AA1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#33546C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5338aa;
/* rgb */ color: rgb(83, 56, 170);
/* oklch */ color: oklch(44.1% 0.173 288.0);
Tailwind
colors: {
  custom: {
    50: '#8b70c4',
    500: '#5338aa',
    950: '#000000',
  },
}
SCSS
$custom: #5338aa;
$custom-light: #8b70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5338aa",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 254.211,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44067,
    "c": 0.1727,
    "h": 288
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#5338AA
secondary
#B1C17D
accent
#DA4EB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5338AA

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

Preview Lab → · Contrast checker → · Palette generator →

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