#9A40C2#9A40C2

#9A40C2 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.0% C 0.202 H 313.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9A40C2
RGBrgb(154, 64, 194)
HSLhsl(282, 52%, 51%)
HSVhsv(282, 67%, 76%)
CMYKcmyk(20.6%, 67%, 0%, 23.9%)
CIE-LABlab(44.85, 57.64, -51.92)
CIE-LCHlch(44.85, 77.58, 317.99°)
OKLaboklab(54.97% 0.1392 -0.1462)
OKLCHoklch(54.97% 0.202 313.6)
XYZxyz(24.8958, 14.4326, 52.5028)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40C2 #68C240
analogous
#5940C2 #9A40C2 #C240A9
triadic
#9A40C2 #C29A40 #40C29A
tetradic
#9A40C2 #C25940 #68C240 #40A9C2
square
#9A40C2 #C25940 #68C240 #40A9C2
split-complementary
#9A40C2 #A9C240 #40C259
monochromatic
#512167 #763095 #9A40C2 #B36ED1 #CB9DE0

Accessibility & contrast

On white

5.40
#9A40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9A40C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40C2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40C2#FFFFFF#000000##FFFFFF
##9A40C21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#386CBF
Tritanopia (blue-blind)
#965A7C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a40c2;
/* rgb */ color: rgb(154, 64, 194);
/* oklch */ color: oklch(55.0% 0.202 313.6);
Tailwind
colors: {
  custom: {
    50: '#bb7bd5',
    500: '#9a40c2',
    950: '#000000',
  },
}
SCSS
$custom: #9a40c2;
$custom-light: #bb7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40c2",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 281.538,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54972,
    "c": 0.20188,
    "h": 313.6
  },
  "luminance": 0.14432
}

Semantic roles & 50–950 ramp

primary
#9A40C2
secondary
#A4CC92
accent
#DB4D79
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9A40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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