#8038AF#8038AF

#8038AF is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.185 H 308.9°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8038AF
RGBrgb(128, 56, 175)
HSLhsl(276, 52%, 45%)
HSVhsv(276, 68%, 69%)
CMYKcmyk(26.9%, 68%, 0%, 31.4%)
CIE-LABlab(38.75, 51.43, -50.76)
CIE-LCHlch(38.75, 72.26, 315.37°)
OKLaboklab(49.45% 0.1159 -0.1436)
OKLCHoklch(49.45% 0.185 308.9)
XYZxyz(18.0526, 10.5130, 41.6273)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8038AF #67AF38
analogous
#4538AF #8038AF #AF38A2
triadic
#8038AF #AF8038 #38AF80
tetradic
#8038AF #AF4538 #67AF38 #38A2AF
square
#8038AF #AF4538 #67AF38 #38A2AF
split-complementary
#8038AF #A2AF38 #38AF45
monochromatic
#3C1A52 #5E2981 #8038AF #9E5ACA #B988D9

Accessibility & contrast

On white

6.77
#8038AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8038AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8038AF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8038AF#FFFFFF#000000##FFFFFF
##8038AF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#215CAC
Tritanopia (blue-blind)
#79516F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8038af;
/* rgb */ color: rgb(128, 56, 175);
/* oklch */ color: oklch(49.5% 0.185 308.9);
Tailwind
colors: {
  custom: {
    50: '#a974c8',
    500: '#8038af',
    950: '#000000',
  },
}
SCSS
$custom: #8038af;
$custom-light: #a974c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8038af",
  "rgb": {
    "r": 128,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 276.303,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49452,
    "c": 0.18458,
    "h": 308.9
  },
  "luminance": 0.10513
}

Semantic roles & 50–950 ramp

primary
#8038AF
secondary
#9AC380
accent
#DB4D85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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