#8038B2#8038B2

#8038B2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.188 H 308.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8038B2
RGBrgb(128, 56, 178)
HSLhsl(275, 52%, 46%)
HSVhsv(275, 69%, 70%)
CMYKcmyk(28.1%, 68.5%, 0%, 30.2%)
CIE-LABlab(38.95, 52.11, -52.21)
CIE-LCHlch(38.95, 73.77, 314.95°)
OKLaboklab(49.67% 0.1156 -0.1479)
OKLCHoklch(49.67% 0.188 308)
XYZxyz(18.3505, 10.6322, 43.1964)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038B2 #6AB238
analogous
#4338B2 #8038B2 #B238A7
triadic
#8038B2 #B28038 #38B280
tetradic
#8038B2 #B24338 #6AB238 #38A7B2
square
#8038B2 #B24338 #6AB238 #38A7B2
split-complementary
#8038B2 #A7B238 #38B243
monochromatic
#3D1B55 #5F2983 #8038B2 #9E5CCC #B98ADA

Accessibility & contrast

On white

6.72
#8038B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8038B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038B2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038B2#FFFFFF#000000##FFFFFF
##8038B21.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#1C5CAF
Tritanopia (blue-blind)
#785371
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8038b2;
/* rgb */ color: rgb(128, 56, 178);
/* oklch */ color: oklch(49.7% 0.188 308.0);
Tailwind
colors: {
  custom: {
    50: '#a974ca',
    500: '#8038b2',
    950: '#000000',
  },
}
SCSS
$custom: #8038b2;
$custom-light: #a974ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8038b2",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 275.41,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49665,
    "c": 0.18771,
    "h": 308
  },
  "luminance": 0.10632
}

Semantic roles & 50–950 ramp

primary
#8038B2
secondary
#9DC581
accent
#DC4C87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8038B2

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

Preview Lab → · Contrast checker → · Palette generator →

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