#8238C4#8238C4

#8238C4 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.207 H 304.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8238C4
RGBrgb(130, 56, 196)
HSLhsl(272, 56%, 49%)
HSVhsv(272, 71%, 77%)
CMYKcmyk(33.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(40.51, 56.68, -60.26)
CIE-LCHlch(40.51, 82.73, 313.25°)
OKLaboklab(51.24% 0.1158 -0.1714)
OKLCHoklch(51.24% 0.207 304)
XYZxyz(20.5816, 11.5598, 53.3608)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C4 #7AC438
analogous
#3C38C4 #8238C4 #C438C0
triadic
#8238C4 #C48238 #38C482
tetradic
#8238C4 #C43C38 #7AC438 #38C0C4
square
#8238C4 #C43C38 #7AC438 #38C0C4
split-complementary
#8238C4 #C0C438 #38C43C
monochromatic
#431D65 #622A94 #8238C4 #A066D3 #BD96E1

Accessibility & contrast

On white

6.34
#8238C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8238C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C4
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C4#FFFFFF#000000##FFFFFF
##8238C41.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#75597A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8238c4;
/* rgb */ color: rgb(130, 56, 196);
/* oklch */ color: oklch(51.2% 0.207 304.0);
Tailwind
colors: {
  custom: {
    50: '#ac75d7',
    500: '#8238c4',
    950: '#000000',
  },
}
SCSS
$custom: #8238c4;
$custom-light: #ac75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c4",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 271.714,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51237,
    "c": 0.20688,
    "h": 304
  },
  "luminance": 0.1156
}

Semantic roles & 50–950 ramp

primary
#8238C4
secondary
#AACC8C
accent
#DF4990
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8238C4

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

Preview Lab → · Contrast checker → · Palette generator →

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