#7835CB#7835CB

#7835CB is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.216 H 298.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7835CB
RGBrgb(120, 53, 203)
HSLhsl(267, 59%, 50%)
HSVhsv(267, 74%, 80%)
CMYKcmyk(40.9%, 73.9%, 0%, 20.4%)
CIE-LABlab(39.33, 57.90, -66.30)
CIE-LCHlch(39.33, 88.02, 311.13°)
OKLaboklab(50.3% 0.1032 -0.1895)
OKLCHoklch(50.3% 0.216 298.6)
XYZxyz(19.7956, 10.8508, 57.5398)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7835CB #88CB35
analogous
#353DCB #7835CB #C335CB
triadic
#7835CB #CB7835 #35CB78
tetradic
#7835CB #CB353D #88CB35 #35CBC3
square
#7835CB #CB353D #88CB35 #35CBC3
split-complementary
#7835CB #CBC335 #3DCB35
monochromatic
#3F1B6A #5B289B #7835CB #9966D8 #B996E4

Accessibility & contrast

On white

6.62
#7835CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7835CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7835CB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7835CB#FFFFFF#000000##FFFFFF
##7835CB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#645C7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7835cb;
/* rgb */ color: rgb(120, 53, 203);
/* oklch */ color: oklch(50.3% 0.216 298.6);
Tailwind
colors: {
  custom: {
    50: '#a673dc',
    500: '#7835cb',
    950: '#000000',
  },
}
SCSS
$custom: #7835cb;
$custom-light: #a673dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7835cb",
  "rgb": {
    "r": 120,
    "g": 53,
    "b": 203
  },
  "hsl": {
    "h": 266.8,
    "s": 59.055,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.21581,
    "h": 298.6
  },
  "luminance": 0.10851
}

Semantic roles & 50–950 ramp

primary
#7835CB
secondary
#B1CF8C
accent
#E2469C
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7835CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7835CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva