#8238C8#8238C8

#8238C8 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.211 H 303.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8238C8
RGBrgb(130, 56, 200)
HSLhsl(271, 57%, 50%)
HSVhsv(271, 72%, 78%)
CMYKcmyk(35%, 72%, 0%, 21.6%)
CIE-LABlab(40.81, 57.62, -62.10)
CIE-LCHlch(40.81, 84.71, 312.86°)
OKLaboklab(51.54% 0.1151 -0.1769)
OKLCHoklch(51.54% 0.211 303)
XYZxyz(21.0430, 11.7443, 55.7907)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C8 #7EC838
analogous
#3A38C8 #8238C8 #C838C6
triadic
#8238C8 #C88238 #38C882
tetradic
#8238C8 #C83A38 #7EC838 #38C6C8
square
#8238C8 #C83A38 #7EC838 #38C6C8
split-complementary
#8238C8 #C6C838 #38C83A
monochromatic
#441D69 #632A99 #8238C8 #A068D5 #BE98E3

Accessibility & contrast

On white

6.27
#8238C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8238C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C8#FFFFFF#000000##FFFFFF
##8238C81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#745B7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8238c8;
/* rgb */ color: rgb(130, 56, 200);
/* oklch */ color: oklch(51.5% 0.211 303.0);
Tailwind
colors: {
  custom: {
    50: '#ac75da',
    500: '#8238c8',
    950: '#000000',
  },
}
SCSS
$custom: #8238c8;
$custom-light: #ac75da;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c8",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 270.833,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51543,
    "c": 0.21099,
    "h": 303
  },
  "luminance": 0.11744
}

Semantic roles & 50–950 ramp

primary
#8238C8
secondary
#ADCE8E
accent
#E04892
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8238C8

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

Preview Lab → · Contrast checker → · Palette generator →

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