#9638CC#9638CC

#9638CC is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.3% C 0.220 H 310.0°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9638CC
RGBrgb(150, 56, 204)
HSLhsl(278, 59%, 51%)
HSVhsv(278, 73%, 80%)
CMYKcmyk(26.5%, 72.5%, 0%, 20%)
CIE-LABlab(43.76, 62.30, -59.50)
CIE-LCHlch(43.76, 86.15, 316.31°)
OKLaboklab(54.29% 0.1412 -0.1686)
OKLCHoklch(54.29% 0.22 310)
XYZxyz(24.8888, 13.6725, 58.4430)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9638CC #6ECC38
analogous
#4C38CC #9638CC #CC38B8
triadic
#9638CC #CC9638 #38CC96
tetradic
#9638CC #CC4C38 #6ECC38 #38B8CC
square
#9638CC #CC4C38 #6ECC38 #38B8CC
split-complementary
#9638CC #B8CC38 #38CC4C
monochromatic
#501C6E #73299E #9638CC #B069D8 #C999E5

Accessibility & contrast

On white

5.62
#9638CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9638CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9638CC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9638CC#FFFFFF#000000##FFFFFF
##9638CC1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#1769C9
Tritanopia (blue-blind)
#8E5A7F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9638cc;
/* rgb */ color: rgb(150, 56, 204);
/* oklch */ color: oklch(54.3% 0.220 310.0);
Tailwind
colors: {
  custom: {
    50: '#ba77dc',
    500: '#9638cc',
    950: '#000000',
  },
}
SCSS
$custom: #9638cc;
$custom-light: #ba77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9638cc",
  "rgb": {
    "r": 150,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 278.108,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54292,
    "c": 0.21991,
    "h": 310
  },
  "luminance": 0.13672
}

Semantic roles & 50–950 ramp

primary
#9638CC
secondary
#A7D18F
accent
#E2457F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9638CC

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

Preview Lab → · Contrast checker → · Palette generator →

#9638CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva