#7B2CA9#7B2CA9

#7B2CA9 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.192 H 309.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7B2CA9
RGBrgb(123, 44, 169)
HSLhsl(278, 59%, 42%)
HSVhsv(278, 74%, 66%)
CMYKcmyk(27.2%, 74%, 0%, 33.7%)
CIE-LABlab(35.75, 54.34, -52.07)
CIE-LCHlch(35.75, 75.26, 316.22°)
OKLaboklab(47.03% 0.1226 -0.1475)
OKLCHoklch(47.03% 0.192 309.7)
XYZxyz(16.2291, 8.8772, 38.3870)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA9 #5AA92C
analogous
#3D2CA9 #7B2CA9 #A92C99
triadic
#7B2CA9 #A97B2C #2CA97B
tetradic
#7B2CA9 #A93D2C #5AA92C #2C99A9
square
#7B2CA9 #A93D2C #5AA92C #2C99A9
split-complementary
#7B2CA9 #99A92C #2CA93D
monochromatic
#341348 #581F78 #7B2CA9 #9B44CE #B574DB

Accessibility & contrast

On white

7.57
#7B2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7B2CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CA9
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CA9#FFFFFF#000000##FFFFFF
##7B2CA91.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0D55A6
Tritanopia (blue-blind)
#744968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ca9;
/* rgb */ color: rgb(123, 44, 169);
/* oklch */ color: oklch(47.0% 0.192 309.7);
Tailwind
colors: {
  custom: {
    50: '#a66dc3',
    500: '#7b2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca9;
$custom-light: #a66dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca9",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 277.92,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47034,
    "c": 0.19185,
    "h": 309.7
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#7B2CA9
secondary
#8DC36E
accent
#E2467F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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