#8238C5#8238C5

#8238C5 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.208 H 303.8°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8238C5
RGBrgb(130, 56, 197)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 77%)
CMYKcmyk(34%, 71.6%, 0%, 22.7%)
CIE-LABlab(40.58, 56.92, -60.72)
CIE-LCHlch(40.58, 83.22, 313.15°)
OKLaboklab(51.31% 0.1156 -0.1728)
OKLCHoklch(51.31% 0.208 303.8)
XYZxyz(20.6958, 11.6054, 53.9623)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C5 #7BC538
analogous
#3B38C5 #8238C5 #C538C2
triadic
#8238C5 #C58238 #38C582
tetradic
#8238C5 #C53B38 #7BC538 #38C2C5
square
#8238C5 #C53B38 #7BC538 #38C2C5
split-complementary
#8238C5 #C2C538 #38C53B
monochromatic
#431D66 #632A95 #8238C5 #A067D4 #BE96E1

Accessibility & contrast

On white

6.32
#8238C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8238C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C5#FFFFFF#000000##FFFFFF
##8238C51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#755A7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8238c5;
/* rgb */ color: rgb(130, 56, 197);
/* oklch */ color: oklch(51.3% 0.208 303.8);
Tailwind
colors: {
  custom: {
    50: '#ac75d7',
    500: '#8238c5',
    950: '#000000',
  },
}
SCSS
$custom: #8238c5;
$custom-light: #ac75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c5",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 271.489,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51313,
    "c": 0.20791,
    "h": 303.8
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#8238C5
secondary
#ABCD8C
accent
#DF4990
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8238C5

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

Preview Lab → · Contrast checker → · Palette generator →

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