#8238C7#8238C7

#8238C7 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.210 H 303.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8238C7
RGBrgb(130, 56, 199)
HSLhsl(271, 56%, 50%)
HSVhsv(271, 72%, 78%)
CMYKcmyk(34.7%, 71.9%, 0%, 22%)
CIE-LABlab(40.73, 57.39, -61.64)
CIE-LCHlch(40.73, 84.22, 312.95°)
OKLaboklab(51.47% 0.1153 -0.1755)
OKLCHoklch(51.47% 0.21 303.3)
XYZxyz(20.9265, 11.6977, 55.1772)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8238C7 #7DC738
analogous
#3B38C7 #8238C7 #C738C4
triadic
#8238C7 #C78238 #38C782
tetradic
#8238C7 #C73B38 #7DC738 #38C4C7
square
#8238C7 #C73B38 #7DC738 #38C4C7
split-complementary
#8238C7 #C4C738 #38C73B
monochromatic
#441D67 #632B97 #8238C7 #A068D4 #BE98E2

Accessibility & contrast

On white

6.29
#8238C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8238C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8238C7
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8238C7#FFFFFF#000000##FFFFFF
##8238C71.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#745B7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8238c7;
/* rgb */ color: rgb(130, 56, 199);
/* oklch */ color: oklch(51.5% 0.210 303.3);
Tailwind
colors: {
  custom: {
    50: '#ac75d9',
    500: '#8238c7',
    950: '#000000',
  },
}
SCSS
$custom: #8238c7;
$custom-light: #ac75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8238c7",
  "rgb": {
    "r": 130,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 271.049,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.51466,
    "c": 0.20997,
    "h": 303.3
  },
  "luminance": 0.11698
}

Semantic roles & 50–950 ramp

primary
#8238C7
secondary
#ACCD8D
accent
#DF4891
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8238C7

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

Preview Lab → · Contrast checker → · Palette generator →

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