#9A38CD#9A38CD

#9A38CD is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.9% C 0.222 H 311.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9A38CD
RGBrgb(154, 56, 205)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(24.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(44.39, 63.28, -59.04)
CIE-LCHlch(44.39, 86.55, 316.99°)
OKLaboklab(54.87% 0.1463 -0.1671)
OKLCHoklch(54.87% 0.222 311.2)
XYZxyz(25.7580, 14.1068, 59.1118)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38CD #6BCD38
analogous
#4F38CD #9A38CD #CD38B5
triadic
#9A38CD #CD9A38 #38CD9A
tetradic
#9A38CD #CD4F38 #6BCD38 #38B5CD
square
#9A38CD #CD4F38 #6BCD38 #38B5CD
split-complementary
#9A38CD #B5CD38 #38CD4F
monochromatic
#521C6F #7728A0 #9A38CD #B369D9 #CC9AE6

Accessibility & contrast

On white

5.50
#9A38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9A38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38CD
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38CD#FFFFFF#000000##FFFFFF
##9A38CD1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#1F6BCA
Tritanopia (blue-blind)
#935A80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a38cd;
/* rgb */ color: rgb(154, 56, 205);
/* oklch */ color: oklch(54.9% 0.222 311.2);
Tailwind
colors: {
  custom: {
    50: '#bc78dd',
    500: '#9a38cd',
    950: '#000000',
  },
}
SCSS
$custom: #9a38cd;
$custom-light: #bc78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38cd",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 279.463,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54874,
    "c": 0.22204,
    "h": 311.2
  },
  "luminance": 0.14106
}

Semantic roles & 50–950 ramp

primary
#9A38CD
secondary
#A6D18F
accent
#E3457B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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