#7B2EA7#7B2EA7

#7B2EA7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.188 H 310.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7B2EA7
RGBrgb(123, 46, 167)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.3%, 72.5%, 0%, 34.5%)
CIE-LABlab(35.90, 53.06, -50.63)
CIE-LCHlch(35.90, 73.34, 316.35°)
OKLaboklab(47.1% 0.1209 -0.1433)
OKLCHoklch(47.1% 0.188 310.2)
XYZxyz(16.1191, 8.9553, 37.4311)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA7 #5AA72E
analogous
#3F2EA7 #7B2EA7 #A72E97
triadic
#7B2EA7 #A77B2E #2EA77B
tetradic
#7B2EA7 #A73F2E #5AA72E #2E97A7
square
#7B2EA7 #A73F2E #5AA72E #2E97A7
split-complementary
#7B2EA7 #97A72E #2EA73F
monochromatic
#341447 #582177 #7B2EA7 #9B46CC #B576D9

Accessibility & contrast

On white

7.52
#7B2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA7
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA7#FFFFFF#000000##FFFFFF
##7B2EA71.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1656A4
Tritanopia (blue-blind)
#754968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b2ea7;
/* rgb */ color: rgb(123, 46, 167);
/* oklch */ color: oklch(47.1% 0.188 310.2);
Tailwind
colors: {
  custom: {
    50: '#a56ec2',
    500: '#7b2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea7;
$custom-light: #a56ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea7",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 278.182,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47095,
    "c": 0.18753,
    "h": 310.2
  },
  "luminance": 0.08955
}

Semantic roles & 50–950 ramp

primary
#7B2EA7
secondary
#8DC170
accent
#E0487F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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