#9848CD#9848CD

#9848CD is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.202 H 309.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9848CD
RGBrgb(152, 72, 205)
HSLhsl(276, 57%, 54%)
HSVhsv(276, 65%, 80%)
CMYKcmyk(25.9%, 64.9%, 0%, 19.6%)
CIE-LABlab(46.60, 55.91, -55.48)
CIE-LCHlch(46.60, 78.77, 315.22°)
OKLaboklab(56.4% 0.1269 -0.1568)
OKLCHoklch(56.4% 0.202 309)
XYZxyz(26.2835, 15.7184, 59.3951)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9848CD #7DCD48
analogous
#5648CD #9848CD #CD48C0
triadic
#9848CD #CD9848 #48CD98
tetradic
#9848CD #CD5648 #7DCD48 #48C0CD
square
#9848CD #CD5648 #7DCD48 #48C0CD
split-complementary
#9848CD #C0CD48 #48CD56
monochromatic
#562179 #782EA9 #9848CD #B378DA #CEA8E7

Accessibility & contrast

On white

5.07
#9848CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#9848CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9848CD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9848CD#FFFFFF#000000##FFFFFF
##9848CD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#326FCA
Tritanopia (blue-blind)
#906384
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9848cd;
/* rgb */ color: rgb(152, 72, 205);
/* oklch */ color: oklch(56.4% 0.202 309.0);
Tailwind
colors: {
  custom: {
    50: '#ba80dd',
    500: '#9848cd',
    950: '#000000',
  },
}
SCSS
$custom: #9848cd;
$custom-light: #ba80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9848cd",
  "rgb": {
    "r": 152,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 276.09,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56402,
    "c": 0.20169,
    "h": 309
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

primary
#9848CD
secondary
#B3D59C
accent
#E04784
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9848CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9848CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva