#9A2FD8#9A2FD8

#9A2FD8 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.9% C 0.241 H 309.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9A2FD8
RGBrgb(154, 47, 216)
HSLhsl(278, 68%, 52%)
HSVhsv(278, 78%, 85%)
CMYKcmyk(28.7%, 78.2%, 0%, 15.3%)
CIE-LABlab(44.03, 68.84, -65.94)
CIE-LCHlch(44.03, 95.33, 316.23°)
OKLaboklab(54.87% 0.152 -0.1873)
OKLCHoklch(54.87% 0.241 309.1)
XYZxyz(26.7351, 13.8614, 66.2196)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2FD8 #6DD82F
analogous
#462FD8 #9A2FD8 #D82FC2
triadic
#9A2FD8 #D89A2F #2FD89A
tetradic
#9A2FD8 #D8462F #6DD82F #2FC2D8
square
#9A2FD8 #D8462F #6DD82F #2FC2D8
split-complementary
#9A2FD8 #C2D82F #2FD846
monochromatic
#531676 #7720AA #9A2FD8 #B363E2 #CC96EB

Accessibility & contrast

On white

5.57
#9A2FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9A2FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2FD8
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2FD8#FFFFFF#000000##FFFFFF
##9A2FD81.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#905A84
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9a2fd8;
/* rgb */ color: rgb(154, 47, 216);
/* oklch */ color: oklch(54.9% 0.241 309.1);
Tailwind
colors: {
  custom: {
    50: '#bd74e5',
    500: '#9a2fd8',
    950: '#000000',
  },
}
SCSS
$custom: #9a2fd8;
$custom-light: #bd74e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2fd8",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 216
  },
  "hsl": {
    "h": 277.988,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54874,
    "c": 0.24118,
    "h": 309.1
  },
  "luminance": 0.13861
}

Semantic roles & 50–950 ramp

primary
#9A2FD8
secondary
#A8D78C
accent
#EB3D7D
background
#FCF7FE
surface
#F8EDFC
border
#D1C8D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9A2FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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