#7B2EB4#7B2EB4

#7B2EB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.200 H 306.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB4
RGBrgb(123, 46, 180)
HSLhsl(274, 59%, 44%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(31.7%, 74.4%, 0%, 29.4%)
CIE-LABlab(36.86, 55.98, -56.82)
CIE-LCHlch(36.86, 79.77, 314.57°)
OKLaboklab(48.08% 0.1187 -0.1615)
OKLCHoklch(48.08% 0.2 306.3)
XYZxyz(17.3818, 9.4604, 44.0815)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB4 #67B42E
analogous
#382EB4 #7B2EB4 #B42EAA
triadic
#7B2EB4 #B47B2E #2EB47B
tetradic
#7B2EB4 #B4382E #67B42E #2EAAB4
square
#7B2EB4 #B4382E #67B42E #2EAAB4
split-complementary
#7B2EB4 #AAB42E #2EB438
monochromatic
#381553 #5A2283 #7B2EB4 #994ED2 #B57EDE

Accessibility & contrast

On white

7.26
#7B2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7B2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EB4
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB4#FFFFFF#000000##FFFFFF
##7B2EB41.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#714F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2eb4;
/* rgb */ color: rgb(123, 46, 180);
/* oklch */ color: oklch(48.1% 0.200 306.3);
Tailwind
colors: {
  custom: {
    50: '#a66ecb',
    500: '#7b2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb4;
$custom-light: #a66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb4",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 274.478,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48076,
    "c": 0.20047,
    "h": 306.3
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#7B2EB4
secondary
#99C777
accent
#E24588
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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