#8038CB#8038CB

#8038CB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.214 H 301.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8038CB
RGBrgb(128, 56, 203)
HSLhsl(269, 59%, 51%)
HSVhsv(269, 72%, 80%)
CMYKcmyk(36.9%, 72.4%, 0%, 20.4%)
CIE-LABlab(40.78, 57.97, -63.89)
CIE-LCHlch(40.78, 86.27, 312.22°)
OKLaboklab(51.54% 0.1117 -0.1822)
OKLCHoklch(51.54% 0.214 301.5)
XYZxyz(21.0931, 11.7292, 57.6410)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038CB #83CB38
analogous
#3839CB #8038CB #CA38CB
triadic
#8038CB #CB8038 #38CB80
tetradic
#8038CB #CB3839 #83CB38 #38CBCA
square
#8038CB #CB3839 #83CB38 #38CBCA
split-complementary
#8038CB #CBCA38 #39CB38
monochromatic
#431C6C #62299D #8038CB #9F69D8 #BE99E4

Accessibility & contrast

On white

6.28
#8038CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8038CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038CB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038CB#FFFFFF#000000##FFFFFF
##8038CB1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#705C7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8038cb;
/* rgb */ color: rgb(128, 56, 203);
/* oklch */ color: oklch(51.5% 0.214 301.5);
Tailwind
colors: {
  custom: {
    50: '#ab75dc',
    500: '#8038cb',
    950: '#000000',
  },
}
SCSS
$custom: #8038cb;
$custom-light: #ab75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8038cb",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 269.388,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51542,
    "c": 0.21372,
    "h": 301.5
  },
  "luminance": 0.11729
}

Semantic roles & 50–950 ramp

primary
#8038CB
secondary
#B0D08F
accent
#E24695
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8038CB

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

Preview Lab → · Contrast checker → · Palette generator →

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