#7B2EA9#7B2EA9

#7B2EA9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.190 H 309.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA9
RGBrgb(123, 46, 169)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 73%, 66%)
CMYKcmyk(27.2%, 72.8%, 0%, 33.7%)
CIE-LABlab(36.04, 53.51, -51.59)
CIE-LCHlch(36.04, 74.33, 316.04°)
OKLaboklab(47.24% 0.1206 -0.1462)
OKLCHoklch(47.24% 0.19 309.5)
XYZxyz(16.3054, 9.0298, 38.4124)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA9 #5CA92E
analogous
#3E2EA9 #7B2EA9 #A92E9A
triadic
#7B2EA9 #A97B2E #2EA97B
tetradic
#7B2EA9 #A93E2E #5CA92E #2E9AA9
square
#7B2EA9 #A93E2E #5CA92E #2E9AA9
split-complementary
#7B2EA9 #9AA92E #2EA93E
monochromatic
#351449 #582179 #7B2EA9 #9B47CD #B577DA

Accessibility & contrast

On white

7.48
#7B2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7B2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA9
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA9#FFFFFF#000000##FFFFFF
##7B2EA91.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1156A6
Tritanopia (blue-blind)
#744A69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2ea9;
/* rgb */ color: rgb(123, 46, 169);
/* oklch */ color: oklch(47.2% 0.190 309.5);
Tailwind
colors: {
  custom: {
    50: '#a66ec3',
    500: '#7b2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea9;
$custom-light: #a66ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea9",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 277.561,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47243,
    "c": 0.18951,
    "h": 309.5
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#7B2EA9
secondary
#8FC271
accent
#E04781
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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