#7B2FB9#7B2FB9

#7B2FB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.204 H 304.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7B2FB9
RGBrgb(123, 47, 185)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33.5%, 74.6%, 0%, 27.5%)
CIE-LABlab(37.38, 56.71, -58.92)
CIE-LCHlch(37.38, 81.78, 313.90°)
OKLaboklab(48.57% 0.1168 -0.1677)
OKLCHoklch(48.57% 0.204 304.8)
XYZxyz(17.9399, 9.7469, 46.8258)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB9 #6DB92F
analogous
#362FB9 #7B2FB9 #B92FB2
triadic
#7B2FB9 #B97B2F #2FB97B
tetradic
#7B2FB9 #B9362F #6DB92F #2FB2B9
square
#7B2FB9 #B9362F #6DB92F #2FB2B9
split-complementary
#7B2FB9 #B2B92F #2FB936
monochromatic
#3A1657 #5B2388 #7B2FB9 #9952D3 #B683DF

Accessibility & contrast

On white

7.12
#7B2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7B2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB9#FFFFFF#000000##FFFFFF
##7B2FB91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#6F5172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b2fb9;
/* rgb */ color: rgb(123, 47, 185);
/* oklch */ color: oklch(48.6% 0.204 304.8);
Tailwind
colors: {
  custom: {
    50: '#a76fcf',
    500: '#7b2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb9;
$custom-light: #a76fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb9",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 273.043,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48568,
    "c": 0.20436,
    "h": 304.8
  },
  "luminance": 0.09747
}

Semantic roles & 50–950 ramp

primary
#7B2FB9
secondary
#9EC97B
accent
#E3458C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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