#9A34D2#9A34D2

#9A34D2 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.9% C 0.231 H 310.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9A34D2
RGBrgb(154, 52, 210)
HSLhsl(279, 64%, 51%)
HSVhsv(279, 75%, 82%)
CMYKcmyk(26.7%, 75.2%, 0%, 17.6%)
CIE-LABlab(44.20, 65.84, -62.22)
CIE-LCHlch(44.20, 90.59, 316.62°)
OKLaboklab(54.86% 0.1491 -0.1764)
OKLCHoklch(54.86% 0.231 310.2)
XYZxyz(26.1850, 13.9797, 62.2792)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A34D2 #6CD234
analogous
#4B34D2 #9A34D2 #D234BB
triadic
#9A34D2 #D29A34 #34D29A
tetradic
#9A34D2 #D24B34 #6CD234 #34BBD2
square
#9A34D2 #D24B34 #6CD234 #34BBD2
split-complementary
#9A34D2 #BBD234 #34D24B
monochromatic
#531972 #7724A4 #9A34D2 #B366DD #CC98E8

Accessibility & contrast

On white

5.53
#9A34D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9A34D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A34D2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A34D2#FFFFFF#000000##FFFFFF
##9A34D21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#046ACF
Tritanopia (blue-blind)
#925A81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9a34d2;
/* rgb */ color: rgb(154, 52, 210);
/* oklch */ color: oklch(54.9% 0.231 310.2);
Tailwind
colors: {
  custom: {
    50: '#bd76e1',
    500: '#9a34d2',
    950: '#000000',
  },
}
SCSS
$custom: #9a34d2;
$custom-light: #bd76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a34d2",
  "rgb": {
    "r": 154,
    "g": 52,
    "b": 210
  },
  "hsl": {
    "h": 278.734,
    "s": 63.71,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54856,
    "c": 0.23094,
    "h": 310.2
  },
  "luminance": 0.13979
}

Semantic roles & 50–950 ramp

primary
#9A34D2
secondary
#A7D48E
accent
#E7417C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A34D2

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

Preview Lab → · Contrast checker → · Palette generator →

#9A34D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva