#7835B2#7835B2

#7835B2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.3% C 0.189 H 304.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7835B2
RGBrgb(120, 53, 178)
HSLhsl(272, 54%, 45%)
HSVhsv(272, 70%, 70%)
CMYKcmyk(32.6%, 70.2%, 0%, 30.2%)
CIE-LABlab(37.40, 51.85, -54.78)
CIE-LCHlch(37.40, 75.42, 313.42°)
OKLaboklab(48.33% 0.1079 -0.1557)
OKLCHoklch(48.33% 0.189 304.7)
XYZxyz(17.0529, 9.7537, 43.0951)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7835B2 #6FB235
analogous
#3935B2 #7835B2 #B235AE
triadic
#7835B2 #B27835 #35B278
tetradic
#7835B2 #B23935 #6FB235 #35AEB2
square
#7835B2 #B23935 #6FB235 #35AEB2
split-complementary
#7835B2 #AEB235 #35B239
monochromatic
#381954 #582783 #7835B2 #9657CD #B486DB

Accessibility & contrast

On white

7.12
#7835B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7835B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7835B2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7835B2#FFFFFF#000000##FFFFFF
##7835B21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#6D5270
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7835b2;
/* rgb */ color: rgb(120, 53, 178);
/* oklch */ color: oklch(48.3% 0.189 304.7);
Tailwind
colors: {
  custom: {
    50: '#a472ca',
    500: '#7835b2',
    950: '#000000',
  },
}
SCSS
$custom: #7835b2;
$custom-light: #a472ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7835b2",
  "rgb": {
    "r": 120,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 272.16,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48326,
    "c": 0.18944,
    "h": 304.7
  },
  "luminance": 0.09754
}

Semantic roles & 50–950 ramp

primary
#7835B2
secondary
#9FC57E
accent
#DD4A8F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7835B2

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

Preview Lab → · Contrast checker → · Palette generator →

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