#7B2CB8#7B2CB8

#7B2CB8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.207 H 305.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7B2CB8
RGBrgb(123, 44, 184)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 72%)
CMYKcmyk(33.2%, 76.1%, 0%, 27.8%)
CIE-LABlab(36.88, 57.70, -59.15)
CIE-LCHlch(36.88, 82.63, 314.29°)
OKLaboklab(48.19% 0.1197 -0.1684)
OKLCHoklch(48.19% 0.207 305.4)
XYZxyz(17.7189, 9.4731, 46.2331)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CB8 #69B82C
analogous
#352CB8 #7B2CB8 #B82CAF
triadic
#7B2CB8 #B87B2C #2CB87B
tetradic
#7B2CB8 #B8352C #69B82C #2CAFB8
square
#7B2CB8 #B8352C #69B82C #2CAFB8
split-complementary
#7B2CB8 #AFB82C #2CB835
monochromatic
#391455 #5A2087 #7B2CB8 #994DD4 #B67EE0

Accessibility & contrast

On white

7.25
#7B2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7B2CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CB8
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CB8#FFFFFF#000000##FFFFFF
##7B2CB81.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#704F71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2cb8;
/* rgb */ color: rgb(123, 44, 184);
/* oklch */ color: oklch(48.2% 0.207 305.4);
Tailwind
colors: {
  custom: {
    50: '#a76ece',
    500: '#7b2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2cb8;
$custom-light: #a76ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2cb8",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 273.857,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48189,
    "c": 0.20658,
    "h": 305.4
  },
  "luminance": 0.09473
}

Semantic roles & 50–950 ramp

primary
#7B2CB8
secondary
#9BC977
accent
#E5438A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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