#7E3BCB#7E3BCB

#7E3BCB is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.210 H 300.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7E3BCB
RGBrgb(126, 59, 203)
HSLhsl(268, 58%, 51%)
HSVhsv(268, 71%, 80%)
CMYKcmyk(37.9%, 70.9%, 0%, 20.4%)
CIE-LABlab(41.02, 56.24, -63.52)
CIE-LCHlch(41.02, 84.84, 311.52°)
OKLaboklab(51.65% 0.1061 -0.1812)
OKLCHoklch(51.65% 0.21 300.3)
XYZxyz(20.9450, 11.8752, 57.6770)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BCB #88CB3B
analogous
#3B40CB #7E3BCB #C63BCB
triadic
#7E3BCB #CB7E3B #3BCB7E
tetradic
#7E3BCB #CB3B40 #88CB3B #3BCBC6
square
#7E3BCB #CB3B40 #88CB3B #3BCBC6
split-complementary
#7E3BCB #CBC63B #40CB3B
monochromatic
#431D6E #602A9F #7E3BCB #9E6BD8 #BE9CE5

Accessibility & contrast

On white

6.22
#7E3BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E3BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BCB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BCB#FFFFFF#000000##FFFFFF
##7E3BCB1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#6D5E7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3bcb;
/* rgb */ color: rgb(126, 59, 203);
/* oklch */ color: oklch(51.7% 0.210 300.3);
Tailwind
colors: {
  custom: {
    50: '#aa76dc',
    500: '#7e3bcb',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bcb;
$custom-light: #aa76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bcb",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 203
  },
  "hsl": {
    "h": 267.917,
    "s": 58.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51654,
    "c": 0.20996,
    "h": 300.3
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#7E3BCB
secondary
#B3D191
accent
#E14799
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3BCB

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

Preview Lab → · Contrast checker → · Palette generator →

#7E3BCB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva