#7B2FB6#7B2FB6

#7B2FB6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.201 H 305.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7B2FB6
RGBrgb(123, 47, 182)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(32.4%, 74.2%, 0%, 28.6%)
CIE-LABlab(37.15, 56.02, -57.52)
CIE-LCHlch(37.15, 80.29, 314.24°)
OKLaboklab(48.33% 0.1174 -0.1636)
OKLCHoklch(48.33% 0.201 305.7)
XYZxyz(17.6265, 9.6215, 45.1754)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB6 #6AB62F
analogous
#382FB6 #7B2FB6 #B62FAD
triadic
#7B2FB6 #B67B2F #2FB67B
tetradic
#7B2FB6 #B6382F #6AB62F #2FADB6
square
#7B2FB6 #B6382F #6AB62F #2FADB6
split-complementary
#7B2FB6 #ADB62F #2FB638
monochromatic
#391655 #5A2285 #7B2FB6 #9950D2 #B681DE

Accessibility & contrast

On white

7.18
#7B2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7B2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB6#FFFFFF#000000##FFFFFF
##7B2FB61.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#705070
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2fb6;
/* rgb */ color: rgb(123, 47, 182);
/* oklch */ color: oklch(48.3% 0.201 305.7);
Tailwind
colors: {
  custom: {
    50: '#a66fcd',
    500: '#7b2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb6;
$custom-light: #a66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb6",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 273.778,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48334,
    "c": 0.20135,
    "h": 305.7
  },
  "luminance": 0.09621
}

Semantic roles & 50–950 ramp

primary
#7B2FB6
secondary
#9BC779
accent
#E2468A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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