#5238AF#5238AF

#5238AF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.4% C 0.179 H 286.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5238AF
RGBrgb(82, 56, 175)
HSLhsl(253, 52%, 45%)
HSVhsv(253, 68%, 69%)
CMYKcmyk(53.1%, 68%, 0%, 31.4%)
CIE-LABlab(33.39, 42.27, -59.71)
CIE-LCHlch(33.39, 73.16, 305.30°)
OKLaboklab(44.4% 0.0514 -0.1715)
OKLCHoklch(44.4% 0.179 286.7)
XYZxyz(12.6294, 7.7167, 41.3731)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238AF #95AF38
analogous
#385AAF #5238AF #8D38AF
triadic
#5238AF #AF5238 #38AF52
tetradic
#5238AF #AF385A #95AF38 #38AF8D
square
#5238AF #AF385A #95AF38 #38AF8D
split-complementary
#5238AF #AF8D38 #5AAF38
monochromatic
#271A52 #3C2981 #5238AF #735ACA #9A88D9

Accessibility & contrast

On white

8.26
#5238AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5238AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238AF
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238AF#FFFFFF#000000##FFFFFF
##5238AF1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#2D566F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5238af;
/* rgb */ color: rgb(82, 56, 175);
/* oklch */ color: oklch(44.4% 0.179 286.7);
Tailwind
colors: {
  custom: {
    50: '#8c70c8',
    500: '#5238af',
    950: '#000000',
  },
}
SCSS
$custom: #5238af;
$custom-light: #8c70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5238af",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 253.109,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.444,
    "c": 0.17903,
    "h": 286.7
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5238AF

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

Preview Lab → · Contrast checker → · Palette generator →

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