#842FBD#842FBD

#842FBD is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.210 H 307.6°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#842FBD
RGBrgb(132, 47, 189)
HSLhsl(276, 60%, 46%)
HSVhsv(276, 75%, 74%)
CMYKcmyk(30.2%, 75.1%, 0%, 25.9%)
CIE-LABlab(38.92, 59.25, -58.72)
CIE-LCHlch(38.92, 83.42, 315.26°)
OKLaboklab(50.01% 0.1283 -0.1668)
OKLCHoklch(50.01% 0.21 307.6)
XYZxyz(19.7156, 10.6130, 49.1441)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FBD #68BD2F
analogous
#3D2FBD #842FBD #BD2FAF
triadic
#842FBD #BD842F #2FBD84
tetradic
#842FBD #BD3D2F #68BD2F #2FAFBD
square
#842FBD #BD3D2F #68BD2F #2FAFBD
split-complementary
#842FBD #AFBD2F #2FBD3D
monochromatic
#40175B #62238C #842FBD #A155D5 #BC86E1

Accessibility & contrast

On white

6.73
#842FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#842FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FBD
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FBD#FFFFFF#000000##FFFFFF
##842FBD1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#7B5274
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842fbd;
/* rgb */ color: rgb(132, 47, 189);
/* oklch */ color: oklch(50.0% 0.210 307.6);
Tailwind
colors: {
  custom: {
    50: '#ad70d2',
    500: '#842fbd',
    950: '#000000',
  },
}
SCSS
$custom: #842fbd;
$custom-light: #ad70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#842fbd",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 275.915,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50007,
    "c": 0.21048,
    "h": 307.6
  },
  "luminance": 0.10613
}

Semantic roles & 50–950 ramp

primary
#842FBD
secondary
#9CCA7E
accent
#E34484
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842FBD

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

Preview Lab → · Contrast checker → · Palette generator →

#842FBD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva