#9A7EE5#9A7EE5

#9A7EE5 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.3% C 0.150 H 294.5°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9A7EE5
RGBrgb(154, 126, 229)
HSLhsl(256, 66%, 70%)
HSVhsv(256, 45%, 90%)
CMYKcmyk(32.8%, 45%, 0%, 10.2%)
CIE-LABlab(59.39, 33.19, -48.65)
CIE-LCHlch(59.39, 58.89, 304.30°)
OKLaboklab(66.33% 0.0623 -0.1368)
OKLCHoklch(66.33% 0.15 294.5)
XYZxyz(34.9266, 27.4483, 77.5715)
Luminance0.2745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7EE5 #C9E57E
analogous
#7E95E5 #9A7EE5 #CE7EE5
triadic
#9A7EE5 #E59A7E #7EE59A
tetradic
#9A7EE5 #E57E95 #C9E57E #7EE5CE
square
#9A7EE5 #E57E95 #C9E57E #7EE5CE
split-complementary
#9A7EE5 #E5CE7E #95E57E
monochromatic
#5127C2 #724BDB #9A7EE5 #C2B1EF #EAE4FA

Accessibility & contrast

On white

3.24
#9A7EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#9A7EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7EE5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7EE5#FFFFFF#000000##000000
##9A7EE51.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D90E9
Deuteranopia (green-blind)
#618DE2
Tritanopia (blue-blind)
#8991A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #9a7ee5;
/* rgb */ color: rgb(154, 126, 229);
/* oklch */ color: oklch(66.3% 0.150 294.5);
Tailwind
colors: {
  custom: {
    50: '#baa4ee',
    500: '#9a7ee5',
    950: '#000000',
  },
}
SCSS
$custom: #9a7ee5;
$custom-light: #baa4ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7ee5",
  "rgb": {
    "r": 154,
    "g": 126,
    "b": 229
  },
  "hsl": {
    "h": 256.311,
    "s": 66.452,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66326,
    "c": 0.15032,
    "h": 294.5
  },
  "luminance": 0.27449
}

Semantic roles & 50–950 ramp

primary
#9A7EE5
secondary
#E6EED1
accent
#CE179D
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #9A7EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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