#8A38B5#8A38B5

#8A38B5 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.194 H 311.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8A38B5
RGBrgb(138, 56, 181)
HSLhsl(279, 53%, 46%)
HSVhsv(279, 69%, 71%)
CMYKcmyk(23.8%, 69.1%, 0%, 29%)
CIE-LABlab(40.52, 54.92, -51.39)
CIE-LCHlch(40.52, 75.21, 316.91°)
OKLaboklab(51.14% 0.1285 -0.1451)
OKLCHoklch(51.14% 0.194 311.5)
XYZxyz(20.2343, 11.5683, 44.8741)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B5 #63B538
analogous
#4C38B5 #8A38B5 #B538A2
triadic
#8A38B5 #B58A38 #38B58A
tetradic
#8A38B5 #B54C38 #63B538 #38A2B5
square
#8A38B5 #B54C38 #63B538 #38A2B5
split-complementary
#8A38B5 #A2B538 #38B54C
monochromatic
#431B58 #662A86 #8A38B5 #A75DCD #C08CDB

Accessibility & contrast

On white

6.34
#8A38B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A38B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B5
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B5#FFFFFF#000000##FFFFFF
##8A38B51.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#2961B2
Tritanopia (blue-blind)
#855272
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38b5;
/* rgb */ color: rgb(138, 56, 181);
/* oklch */ color: oklch(51.1% 0.194 311.5);
Tailwind
colors: {
  custom: {
    50: '#b075cc',
    500: '#8a38b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b5;
$custom-light: #b075cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b5",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 279.36,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5114,
    "c": 0.19385,
    "h": 311.5
  },
  "luminance": 0.11568
}

Semantic roles & 50–950 ramp

primary
#8A38B5
secondary
#9AC683
accent
#DC4C7D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B5

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

Preview Lab → · Contrast checker → · Palette generator →

#8A38B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva