#7B2EB5#7B2EB5

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

Color values

HEX#7B2EB5
RGBrgb(123, 46, 181)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(32%, 74.6%, 0%, 29%)
CIE-LABlab(36.93, 56.21, -57.29)
CIE-LCHlch(36.93, 80.26, 314.45°)
OKLaboklab(48.15% 0.1185 -0.1629)
OKLCHoklch(48.15% 0.201 306)
XYZxyz(17.4840, 9.5013, 44.6200)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB5 #68B52E
analogous
#382EB5 #7B2EB5 #B52EAC
triadic
#7B2EB5 #B57B2E #2EB57B
tetradic
#7B2EB5 #B5382E #68B52E #2EACB5
square
#7B2EB5 #B5382E #68B52E #2EACB5
split-complementary
#7B2EB5 #ACB52E #2EB538
monochromatic
#391553 #5A2284 #7B2EB5 #994ED2 #B57FDE

Accessibility & contrast

On white

7.24
#7B2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2EB5
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB5#FFFFFF#000000##FFFFFF
##7B2EB51.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#714F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2eb5;
/* rgb */ color: rgb(123, 46, 181);
/* oklch */ color: oklch(48.2% 0.201 306.0);
Tailwind
colors: {
  custom: {
    50: '#a66ecc',
    500: '#7b2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb5;
$custom-light: #a66ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb5",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 274.222,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48153,
    "c": 0.20146,
    "h": 306
  },
  "luminance": 0.09501
}

Semantic roles & 50–950 ramp

primary
#7B2EB5
secondary
#9AC778
accent
#E34589
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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