#8238C2#8238C2

#8238C2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.205 H 304.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8238C2
RGBrgb(130, 56, 194)
HSLhsl(272, 55%, 49%)
HSVhsv(272, 71%, 76%)
CMYKcmyk(33%, 71.1%, 0%, 23.9%)
CIE-LABlab(40.36, 56.22, -59.33)
CIE-LCHlch(40.36, 81.73, 313.46°)
OKLaboklab(51.09% 0.1161 -0.1687)
OKLCHoklch(51.09% 0.205 304.5)
XYZxyz(20.3555, 11.4693, 52.1699)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C2 #78C238
analogous
#3D38C2 #8238C2 #C238BD
triadic
#8238C2 #C28238 #38C282
tetradic
#8238C2 #C23D38 #78C238 #38BDC2
square
#8238C2 #C23D38 #78C238 #38BDC2
split-complementary
#8238C2 #BDC238 #38C23D
monochromatic
#421D63 #622A93 #8238C2 #A065D2 #BD94E0

Accessibility & contrast

On white

6.38
#8238C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8238C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C2#FFFFFF#000000##FFFFFF
##8238C21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#765979
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8238c2;
/* rgb */ color: rgb(130, 56, 194);
/* oklch */ color: oklch(51.1% 0.205 304.5);
Tailwind
colors: {
  custom: {
    50: '#ac75d5',
    500: '#8238c2',
    950: '#000000',
  },
}
SCSS
$custom: #8238c2;
$custom-light: #ac75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c2",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 272.174,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51085,
    "c": 0.20481,
    "h": 304.5
  },
  "luminance": 0.11469
}

Semantic roles & 50–950 ramp

primary
#8238C2
secondary
#A9CB8A
accent
#DF498E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8238C2

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

Preview Lab → · Contrast checker → · Palette generator →

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