#7B2CA7#7B2CA7

#7B2CA7 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.190 H 310.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7B2CA7
RGBrgb(123, 44, 167)
HSLhsl(279, 58%, 41%)
HSVhsv(279, 74%, 65%)
CMYKcmyk(26.3%, 73.7%, 0%, 34.5%)
CIE-LABlab(35.60, 53.90, -51.11)
CIE-LCHlch(35.60, 74.28, 316.53°)
OKLaboklab(46.89% 0.123 -0.1447)
OKLCHoklch(46.89% 0.19 310.4)
XYZxyz(16.0428, 8.8027, 37.4057)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CA7 #58A72C
analogous
#3E2CA7 #7B2CA7 #A72C96
triadic
#7B2CA7 #A77B2C #2CA77B
tetradic
#7B2CA7 #A73E2C #58A72C #2C96A7
square
#7B2CA7 #A73E2C #58A72C #2C96A7
split-complementary
#7B2CA7 #96A72C #2CA73E
monochromatic
#341246 #571F77 #7B2CA7 #9C43CD #B573DA

Accessibility & contrast

On white

7.61
#7B2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CA7
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CA7#FFFFFF#000000##FFFFFF
##7B2CA71.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#1355A4
Tritanopia (blue-blind)
#754867
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ca7;
/* rgb */ color: rgb(123, 44, 167);
/* oklch */ color: oklch(46.9% 0.190 310.4);
Tailwind
colors: {
  custom: {
    50: '#a66dc2',
    500: '#7b2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ca7;
$custom-light: #a66dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ca7",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 278.537,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46885,
    "c": 0.1899,
    "h": 310.4
  },
  "luminance": 0.08802
}

Semantic roles & 50–950 ramp

primary
#7B2CA7
secondary
#8BC26D
accent
#E2467E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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