#5230CF#5230CF

#5230CF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.225 H 283.0°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5230CF
RGBrgb(82, 48, 207)
HSLhsl(253, 62%, 50%)
HSVhsv(253, 77%, 81%)
CMYKcmyk(60.4%, 76.8%, 0%, 18.8%)
CIE-LABlab(34.83, 55.82, -76.16)
CIE-LCHlch(34.83, 94.43, 306.24°)
OKLaboklab(46.31% 0.0506 -0.2196)
OKLCHoklch(46.31% 0.225 283)
XYZxyz(15.7956, 8.4117, 59.8106)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230CF #ADCF30
analogous
#305ECF #5230CF #A130CF
triadic
#5230CF #CF5230 #30CF52
tetradic
#5230CF #CF305E #ADCF30 #30CFA1
square
#5230CF #CF305E #ADCF30 #30CFA1
split-complementary
#5230CF #CFA130 #5ECF30
monochromatic
#2B196C #3E249D #5230CF #7C62DB #A593E6

Accessibility & contrast

On white

7.83
#5230CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5230CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5230CF
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5230CF#FFFFFF#000000##FFFFFF
##5230CF1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#004CCC
Tritanopia (blue-blind)
#005E7F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5230cf;
/* rgb */ color: rgb(82, 48, 207);
/* oklch */ color: oklch(46.3% 0.225 283.0);
Tailwind
colors: {
  custom: {
    50: '#916ddf',
    500: '#5230cf',
    950: '#000000',
  },
}
SCSS
$custom: #5230cf;
$custom-light: #916ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#5230cf",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 207
  },
  "hsl": {
    "h": 252.83,
    "s": 62.353,
    "l": 50
  },
  "oklch": {
    "l": 0.4631,
    "c": 0.22536,
    "h": 283
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#5230CF
secondary
#C2D18A
accent
#E542C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5230CF

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

Preview Lab → · Contrast checker → · Palette generator →

#5230CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva