#852ED7#852ED7

#852ED7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 52.1% C 0.237 H 301.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#852ED7
RGBrgb(133, 46, 215)
HSLhsl(271, 68%, 51%)
HSVhsv(271, 79%, 84%)
CMYKcmyk(38.1%, 78.6%, 0%, 15.7%)
CIE-LABlab(40.97, 65.62, -70.48)
CIE-LCHlch(40.97, 96.30, 312.95°)
OKLaboklab(52.11% 0.1243 -0.2013)
OKLCHoklch(52.11% 0.237 301.7)
XYZxyz(22.9126, 11.8467, 65.3563)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#852ED7 #80D72E
analogous
#302ED7 #852ED7 #D72ED4
triadic
#852ED7 #D7852E #2ED785
tetradic
#852ED7 #D7302E #80D72E #2ED4D7
square
#852ED7 #D7302E #80D72E #2ED4D7
split-complementary
#852ED7 #D4D72E #2ED730
monochromatic
#471674 #6620A8 #852ED7 #A361E1 #C195EB

Accessibility & contrast

On white

6.23
#852ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#852ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #852ED7
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##852ED7#FFFFFF#000000##FFFFFF
##852ED71.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#735C83
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #852ed7;
/* rgb */ color: rgb(133, 46, 215);
/* oklch */ color: oklch(52.1% 0.237 301.7);
Tailwind
colors: {
  custom: {
    50: '#b071e4',
    500: '#852ed7',
    950: '#000000',
  },
}
SCSS
$custom: #852ed7;
$custom-light: #b071e4;
$custom-dark: #000000;
JSON
{
  "hex": "#852ed7",
  "rgb": {
    "r": 133,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 270.888,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5211,
    "c": 0.23663,
    "h": 301.7
  },
  "luminance": 0.11847
}

Semantic roles & 50–950 ramp

primary
#852ED7
secondary
#AFD68B
accent
#EB3D91
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #852ED7

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

Preview Lab → · Contrast checker → · Palette generator →

#852ED7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva