#5238BF#5238BF

#5238BF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.199 H 284.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5238BF
RGBrgb(82, 56, 191)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 75%)
CMYKcmyk(57.1%, 70.7%, 0%, 25.1%)
CIE-LABlab(34.77, 47.07, -66.92)
CIE-LCHlch(34.77, 81.82, 305.12°)
OKLaboklab(45.82% 0.0486 -0.1926)
OKLCHoklch(45.82% 0.199 284.2)
XYZxyz(14.2949, 8.3829, 50.1449)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238BF #A5BF38
analogous
#3861BF #5238BF #9538BF
triadic
#5238BF #BF5238 #38BF52
tetradic
#5238BF #BF3861 #A5BF38 #38BF95
square
#5238BF #BF3861 #A5BF38 #38BF95
split-complementary
#5238BF #BF9538 #61BF38
monochromatic
#291C60 #3E2A90 #5238BF #7863D1 #A192DF

Accessibility & contrast

On white

7.85
#5238BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5238BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238BF
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238BF#FFFFFF#000000##FFFFFF
##5238BF1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#195C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5238bf;
/* rgb */ color: rgb(82, 56, 191);
/* oklch */ color: oklch(45.8% 0.199 284.2);
Tailwind
colors: {
  custom: {
    50: '#8e71d3',
    500: '#5238bf',
    950: '#000000',
  },
}
SCSS
$custom: #5238bf;
$custom-light: #8e71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5238bf",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 251.556,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45815,
    "c": 0.19867,
    "h": 284.2
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

primary
#5238BF
secondary
#BECA89
accent
#DE4AC1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5238BF

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

Preview Lab → · Contrast checker → · Palette generator →

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