#7B2EA8#7B2EA8

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

Color values

HEX#7B2EA8
RGBrgb(123, 46, 168)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 73%, 66%)
CMYKcmyk(26.8%, 72.6%, 0%, 34.1%)
CIE-LABlab(35.97, 53.28, -51.11)
CIE-LCHlch(35.97, 73.83, 316.19°)
OKLaboklab(47.17% 0.1208 -0.1447)
OKLCHoklch(47.17% 0.189 309.8)
XYZxyz(16.2119, 8.9924, 37.9199)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EA8 #5BA82E
analogous
#3E2EA8 #7B2EA8 #A82E98
triadic
#7B2EA8 #A87B2E #2EA87B
tetradic
#7B2EA8 #A83E2E #5BA82E #2E98A8
square
#7B2EA8 #A83E2E #5BA82E #2E98A8
split-complementary
#7B2EA8 #98A82E #2EA83E
monochromatic
#351448 #582178 #7B2EA8 #9B47CD #B577DA

Accessibility & contrast

On white

7.50
#7B2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7B2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EA8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EA8#FFFFFF#000000##FFFFFF
##7B2EA81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#1456A5
Tritanopia (blue-blind)
#754A68
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2ea8;
/* rgb */ color: rgb(123, 46, 168);
/* oklch */ color: oklch(47.2% 0.189 309.8);
Tailwind
colors: {
  custom: {
    50: '#a56ec3',
    500: '#7b2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ea8;
$custom-light: #a56ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ea8",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 277.869,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47169,
    "c": 0.18853,
    "h": 309.8
  },
  "luminance": 0.08992
}

Semantic roles & 50–950 ramp

primary
#7B2EA8
secondary
#8EC270
accent
#E04880
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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