#8238C6#8238C6

#8238C6 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.209 H 303.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8238C6
RGBrgb(130, 56, 198)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 78%)
CMYKcmyk(34.3%, 71.7%, 0%, 22.4%)
CIE-LABlab(40.66, 57.15, -61.18)
CIE-LCHlch(40.66, 83.72, 313.05°)
OKLaboklab(51.39% 0.1154 -0.1742)
OKLCHoklch(51.39% 0.209 303.5)
XYZxyz(20.8108, 11.6514, 54.5677)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C6 #7CC638
analogous
#3B38C6 #8238C6 #C638C3
triadic
#8238C6 #C68238 #38C682
tetradic
#8238C6 #C63B38 #7CC638 #38C3C6
square
#8238C6 #C63B38 #7CC638 #38C3C6
split-complementary
#8238C6 #C3C638 #38C63B
monochromatic
#431D67 #632B96 #8238C6 #A067D4 #BE97E2

Accessibility & contrast

On white

6.31
#8238C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8238C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C6#FFFFFF#000000##FFFFFF
##8238C61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#755A7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8238c6;
/* rgb */ color: rgb(130, 56, 198);
/* oklch */ color: oklch(51.4% 0.209 303.5);
Tailwind
colors: {
  custom: {
    50: '#ac75d8',
    500: '#8238c6',
    950: '#000000',
  },
}
SCSS
$custom: #8238c6;
$custom-light: #ac75d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c6",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 271.268,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51389,
    "c": 0.20894,
    "h": 303.5
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#8238C6
secondary
#ACCD8D
accent
#DF4991
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8238C6

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

Preview Lab → · Contrast checker → · Palette generator →

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