#8A35B9#8A35B9

#8A35B9 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.202 H 310.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A35B9
RGBrgb(138, 53, 185)
HSLhsl(279, 55%, 47%)
HSVhsv(279, 71%, 73%)
CMYKcmyk(25.4%, 71.4%, 0%, 27.5%)
CIE-LABlab(40.33, 57.09, -54.05)
CIE-LCHlch(40.33, 78.61, 316.57°)
OKLaboklab(51.09% 0.1312 -0.1529)
OKLCHoklch(51.09% 0.202 310.6)
XYZxyz(20.5096, 11.4527, 47.0197)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A35B9 #64B935
analogous
#4835B9 #8A35B9 #B935A6
triadic
#8A35B9 #B98A35 #35B98A
tetradic
#8A35B9 #B94835 #64B935 #35A6B9
square
#8A35B9 #B94835 #64B935 #35A6B9
split-complementary
#8A35B9 #A6B935 #35B948
monochromatic
#431A5A #672789 #8A35B9 #A65BD0 #C08BDE

Accessibility & contrast

On white

6.38
#8A35B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A35B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A35B9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A35B9#FFFFFF#000000##FFFFFF
##8A35B91.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#1F60B6
Tritanopia (blue-blind)
#845274
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a35b9;
/* rgb */ color: rgb(138, 53, 185);
/* oklch */ color: oklch(51.1% 0.202 310.6);
Tailwind
colors: {
  custom: {
    50: '#b074cf',
    500: '#8a35b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a35b9;
$custom-light: #b074cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a35b9",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 278.636,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51092,
    "c": 0.2015,
    "h": 310.6
  },
  "luminance": 0.11452
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A35B9

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

Preview Lab → · Contrast checker → · Palette generator →

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