#7B2CB9#7B2CB9

#7B2CB9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.208 H 305.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7B2CB9
RGBrgb(123, 44, 185)
HSLhsl(274, 62%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(33.5%, 76.2%, 0%, 27.5%)
CIE-LABlab(36.96, 57.93, -59.62)
CIE-LCHlch(36.96, 83.12, 314.18°)
OKLaboklab(48.27% 0.1195 -0.1697)
OKLCHoklch(48.27% 0.208 305.1)
XYZxyz(17.8240, 9.5152, 46.7872)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CB9 #6AB92C
analogous
#352CB9 #7B2CB9 #B92CB1
triadic
#7B2CB9 #B97B2C #2CB97B
tetradic
#7B2CB9 #B9352C #6AB92C #2CB1B9
square
#7B2CB9 #B9352C #6AB92C #2CB1B9
split-complementary
#7B2CB9 #B1B92C #2CB935
monochromatic
#391456 #5A2088 #7B2CB9 #994DD5 #B67FE1

Accessibility & contrast

On white

7.23
#7B2CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7B2CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CB9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CB9#FFFFFF#000000##FFFFFF
##7B2CB91.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6F5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2cb9;
/* rgb */ color: rgb(123, 44, 185);
/* oklch */ color: oklch(48.3% 0.208 305.1);
Tailwind
colors: {
  custom: {
    50: '#a76ecf',
    500: '#7b2cb9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2cb9;
$custom-light: #a76ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2cb9",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 273.617,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.20756,
    "h": 305.1
  },
  "luminance": 0.09515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B2CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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