#8238D5#8238D5

#8238D5 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.6% C 0.224 H 300.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8238D5
RGBrgb(130, 56, 213)
HSLhsl(268, 65%, 53%)
HSVhsv(268, 74%, 84%)
CMYKcmyk(39%, 73.7%, 0%, 16.5%)
CIE-LABlab(41.81, 60.70, -67.98)
CIE-LCHlch(41.81, 91.14, 311.76°)
OKLaboklab(52.57% 0.1124 -0.1941)
OKLCHoklch(52.57% 0.224 300.1)
XYZxyz(22.6273, 12.3780, 64.1350)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238D5 #8BD538
analogous
#383DD5 #8238D5 #D038D5
triadic
#8238D5 #D58238 #38D582
tetradic
#8238D5 #D5383D #8BD538 #38D5D0
square
#8238D5 #D5383D #8BD538 #38D5D0
split-complementary
#8238D5 #D5D038 #3DD538
monochromatic
#471A79 #6424AC #8238D5 #A26BE0 #C19DEA

Accessibility & contrast

On white

6.04
#8238D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8238D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238D5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238D5#FFFFFF#000000##FFFFFF
##8238D51.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0061D2
Tritanopia (blue-blind)
#6F6084
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8238d5;
/* rgb */ color: rgb(130, 56, 213);
/* oklch */ color: oklch(52.6% 0.224 300.1);
Tailwind
colors: {
  custom: {
    50: '#ad76e3',
    500: '#8238d5',
    950: '#000000',
  },
}
SCSS
$custom: #8238d5;
$custom-light: #ad76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8238d5",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 268.28,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52565,
    "c": 0.22435,
    "h": 300.1
  },
  "luminance": 0.12378
}

Semantic roles & 50–950 ramp

primary
#8238D5
secondary
#B6D692
accent
#E84099
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #8238D5

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

Preview Lab → · Contrast checker → · Palette generator →

#8238D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva