#7B2CB2#7B2CB2

#7B2CB2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.201 H 307.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7B2CB2
RGBrgb(123, 44, 178)
HSLhsl(275, 60%, 44%)
HSVhsv(275, 75%, 70%)
CMYKcmyk(30.9%, 75.3%, 0%, 30.2%)
CIE-LABlab(36.42, 56.34, -56.35)
CIE-LCHlch(36.42, 79.69, 315.00°)
OKLaboklab(47.72% 0.121 -0.1601)
OKLCHoklch(47.72% 0.201 307.1)
XYZxyz(17.1032, 9.2269, 42.9908)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CB2 #63B22C
analogous
#382CB2 #7B2CB2 #B22CA6
triadic
#7B2CB2 #B27B2C #2CB27B
tetradic
#7B2CB2 #B2382C #63B22C #2CA6B2
square
#7B2CB2 #B2382C #63B22C #2CA6B2
split-complementary
#7B2CB2 #A6B22C #2CB238
monochromatic
#371450 #592081 #7B2CB2 #9A49D2 #B57ADE

Accessibility & contrast

On white

7.38
#7B2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7B2CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CB2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CB2#FFFFFF#000000##FFFFFF
##7B2CB21.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#724D6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2cb2;
/* rgb */ color: rgb(123, 44, 178);
/* oklch */ color: oklch(47.7% 0.201 307.1);
Tailwind
colors: {
  custom: {
    50: '#a66dca',
    500: '#7b2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2cb2;
$custom-light: #a66dca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2cb2",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 275.373,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47719,
    "c": 0.20068,
    "h": 307.1
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#7B2CB2
secondary
#95C673
accent
#E44486
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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