#8238CC#8238CC

#8238CC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.9% C 0.215 H 302.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8238CC
RGBrgb(130, 56, 204)
HSLhsl(270, 59%, 51%)
HSVhsv(270, 73%, 80%)
CMYKcmyk(36.3%, 72.5%, 0%, 20%)
CIE-LABlab(41.11, 58.56, -63.92)
CIE-LCHlch(41.11, 86.70, 312.49°)
OKLaboklab(51.85% 0.1143 -0.1822)
OKLCHoklch(51.85% 0.215 302.1)
XYZxyz(21.5166, 11.9337, 58.2849)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238CC #82CC38
analogous
#3838CC #8238CC #CC38CC
triadic
#8238CC #CC8238 #38CC82
tetradic
#8238CC #CC3838 #82CC38 #38CCCC
square
#8238CC #CC3838 #82CC38 #38CCCC
split-complementary
#8238CC #CCCC38 #38CC38
monochromatic
#451C6E #63299E #8238CC #A169D8 #BF99E5

Accessibility & contrast

On white

6.20
#8238CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8238CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238CC
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238CC#FFFFFF#000000##FFFFFF
##8238CC1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#725D7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8238cc;
/* rgb */ color: rgb(130, 56, 204);
/* oklch */ color: oklch(51.9% 0.215 302.1);
Tailwind
colors: {
  custom: {
    50: '#ac75dd',
    500: '#8238cc',
    950: '#000000',
  },
}
SCSS
$custom: #8238cc;
$custom-light: #ac75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8238cc",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 270,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.21511,
    "h": 302.1
  },
  "luminance": 0.11934
}

Semantic roles & 50–950 ramp

primary
#8238CC
secondary
#B0D18F
accent
#E24594
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8238CC

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

Preview Lab → · Contrast checker → · Palette generator →

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