#8238C9#8238C9

#8238C9 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.6% C 0.212 H 302.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8238C9
RGBrgb(130, 56, 201)
HSLhsl(271, 57%, 50%)
HSVhsv(271, 72%, 79%)
CMYKcmyk(35.3%, 72.1%, 0%, 21.2%)
CIE-LABlab(40.88, 57.86, -62.56)
CIE-LCHlch(40.88, 85.21, 312.76°)
OKLaboklab(51.62% 0.1149 -0.1782)
OKLCHoklch(51.62% 0.212 302.8)
XYZxyz(21.1602, 11.7912, 56.4082)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C9 #7FC938
analogous
#3A38C9 #8238C9 #C938C7
triadic
#8238C9 #C98238 #38C982
tetradic
#8238C9 #C93A38 #7FC938 #38C7C9
square
#8238C9 #C93A38 #7FC938 #38C7C9
split-complementary
#8238C9 #C7C938 #38C93A
monochromatic
#441D6A #632A9A #8238C9 #A068D6 #BE98E3

Accessibility & contrast

On white

6.25
#8238C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8238C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C9
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C9#FFFFFF#000000##FFFFFF
##8238C91.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#735B7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8238c9;
/* rgb */ color: rgb(130, 56, 201);
/* oklch */ color: oklch(51.6% 0.212 302.8);
Tailwind
colors: {
  custom: {
    50: '#ac75da',
    500: '#8238c9',
    950: '#000000',
  },
}
SCSS
$custom: #8238c9;
$custom-light: #ac75da;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c9",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 270.621,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5162,
    "c": 0.21203,
    "h": 302.8
  },
  "luminance": 0.11791
}

Semantic roles & 50–950 ramp

primary
#8238C9
secondary
#AECF8E
accent
#E14792
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8238C9

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

Preview Lab → · Contrast checker → · Palette generator →

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