#8A35B8#8A35B8

#8A35B8 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.201 H 310.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A35B8
RGBrgb(138, 53, 184)
HSLhsl(279, 55%, 46%)
HSVhsv(279, 71%, 72%)
CMYKcmyk(25%, 71.2%, 0%, 27.8%)
CIE-LABlab(40.26, 56.87, -53.57)
CIE-LCHlch(40.26, 78.13, 316.71°)
OKLaboklab(51.02% 0.1314 -0.1515)
OKLCHoklch(51.02% 0.201 310.9)
XYZxyz(20.4044, 11.4107, 46.4657)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35B8 #63B835
analogous
#4935B8 #8A35B8 #B835A5
triadic
#8A35B8 #B88A35 #35B88A
tetradic
#8A35B8 #B84935 #63B835 #35A5B8
square
#8A35B8 #B84935 #63B835 #35A5B8
split-complementary
#8A35B8 #A5B835 #35B849
monochromatic
#431A59 #662788 #8A35B8 #A75BD0 #C08ADD

Accessibility & contrast

On white

6.40
#8A35B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A35B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35B8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35B8#FFFFFF#000000##FFFFFF
##8A35B81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#2060B5
Tritanopia (blue-blind)
#845273
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a35b8;
/* rgb */ color: rgb(138, 53, 184);
/* oklch */ color: oklch(51.0% 0.201 310.9);
Tailwind
colors: {
  custom: {
    50: '#b074ce',
    500: '#8a35b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a35b8;
$custom-light: #b074ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35b8",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 278.931,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51021,
    "c": 0.20053,
    "h": 310.9
  },
  "luminance": 0.1141
}

Semantic roles & 50–950 ramp

primary
#8A35B8
secondary
#9AC781
accent
#DF497E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A35B8

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

Preview Lab → · Contrast checker → · Palette generator →

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