#8238CB#8238CB

#8238CB is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.8% C 0.214 H 302.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8238CB
RGBrgb(130, 56, 203)
HSLhsl(270, 59%, 51%)
HSVhsv(270, 72%, 80%)
CMYKcmyk(36%, 72.4%, 0%, 20.4%)
CIE-LABlab(41.03, 58.33, -63.47)
CIE-LCHlch(41.03, 86.20, 312.58°)
OKLaboklab(51.78% 0.1145 -0.1809)
OKLCHoklch(51.78% 0.214 302.3)
XYZxyz(21.3970, 11.8859, 57.6553)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238CB #81CB38
analogous
#3838CB #8238CB #CB38CB
triadic
#8238CB #CB8238 #38CB82
tetradic
#8238CB #CB3838 #81CB38 #38CBCB
square
#8238CB #CB3838 #81CB38 #38CBCB
split-complementary
#8238CB #CBCB38 #38CB38
monochromatic
#451C6C #63299D #8238CB #A069D8 #BF99E4

Accessibility & contrast

On white

6.22
#8238CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8238CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238CB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238CB#FFFFFF#000000##FFFFFF
##8238CB1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#735C7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8238cb;
/* rgb */ color: rgb(130, 56, 203);
/* oklch */ color: oklch(51.8% 0.214 302.3);
Tailwind
colors: {
  custom: {
    50: '#ac75dc',
    500: '#8238cb',
    950: '#000000',
  },
}
SCSS
$custom: #8238cb;
$custom-light: #ac75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8238cb",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 270.204,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51775,
    "c": 0.21408,
    "h": 302.3
  },
  "luminance": 0.11886
}

Semantic roles & 50–950 ramp

primary
#8238CB
secondary
#AFD08F
accent
#E24693
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8238CB

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

Preview Lab → · Contrast checker → · Palette generator →

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