#5338AF#5338AF

#5338AF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.5% C 0.179 H 287.2°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5338AF
RGBrgb(83, 56, 175)
HSLhsl(254, 52%, 45%)
HSVhsv(254, 68%, 69%)
CMYKcmyk(52.6%, 68%, 0%, 31.4%)
CIE-LABlab(33.48, 42.45, -59.55)
CIE-LCHlch(33.48, 73.13, 305.48°)
OKLaboklab(44.49% 0.0528 -0.171)
OKLCHoklch(44.49% 0.179 287.2)
XYZxyz(12.7170, 7.7619, 41.3772)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5338AF #94AF38
analogous
#3859AF #5338AF #8E38AF
triadic
#5338AF #AF5338 #38AF53
tetradic
#5338AF #AF3859 #94AF38 #38AF8E
square
#5338AF #AF3859 #94AF38 #38AF8E
split-complementary
#5338AF #AF8E38 #59AF38
monochromatic
#271A52 #3D2981 #5338AF #735ACA #9B88D9

Accessibility & contrast

On white

8.23
#5338AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5338AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5338AF#FFFFFF#000000##FFFFFF
##5338AF1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#2F566F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5338af;
/* rgb */ color: rgb(83, 56, 175);
/* oklch */ color: oklch(44.5% 0.179 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c71c8',
    500: '#5338af',
    950: '#000000',
  },
}
SCSS
$custom: #5338af;
$custom-light: #8c71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5338af",
  "rgb": {
    "r": 83,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 253.613,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44492,
    "c": 0.17895,
    "h": 287.2
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#5338AF
secondary
#B4C380
accent
#DB4DBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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