#8238CA#8238CA

#8238CA is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.7% C 0.213 H 302.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8238CA
RGBrgb(130, 56, 202)
HSLhsl(270, 58%, 51%)
HSVhsv(270, 72%, 79%)
CMYKcmyk(35.6%, 72.3%, 0%, 20.8%)
CIE-LABlab(40.96, 58.09, -63.01)
CIE-LCHlch(40.96, 85.70, 312.67°)
OKLaboklab(51.7% 0.1147 -0.1795)
OKLCHoklch(51.7% 0.213 302.6)
XYZxyz(21.2782, 11.8384, 57.0297)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238CA #80CA38
analogous
#3938CA #8238CA #CA38C9
triadic
#8238CA #CA8238 #38CA82
tetradic
#8238CA #CA3938 #80CA38 #38C9CA
square
#8238CA #CA3938 #80CA38 #38C9CA
split-complementary
#8238CA #C9CA38 #38CA39
monochromatic
#441D6B #63299B #8238CA #A068D7 #BF99E4

Accessibility & contrast

On white

6.24
#8238CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8238CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238CA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238CA#FFFFFF#000000##FFFFFF
##8238CA1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#735C7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8238ca;
/* rgb */ color: rgb(130, 56, 202);
/* oklch */ color: oklch(51.7% 0.213 302.6);
Tailwind
colors: {
  custom: {
    50: '#ac75db',
    500: '#8238ca',
    950: '#000000',
  },
}
SCSS
$custom: #8238ca;
$custom-light: #ac75db;
$custom-dark: #000000;
JSON
{
  "hex": "#8238ca",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 270.411,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51697,
    "c": 0.21305,
    "h": 302.6
  },
  "luminance": 0.11838
}

Semantic roles & 50–950 ramp

primary
#8238CA
secondary
#AECF8E
accent
#E14793
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8238CA

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

Preview Lab → · Contrast checker → · Palette generator →

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