#7B2FB8#7B2FB8

#7B2FB8 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.203 H 305.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7B2FB8
RGBrgb(123, 47, 184)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 74%, 72%)
CMYKcmyk(33.2%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.31, 56.48, -58.46)
CIE-LCHlch(37.31, 81.28, 314.01°)
OKLaboklab(48.49% 0.117 -0.1663)
OKLCHoklch(48.49% 0.203 305.1)
XYZxyz(17.8347, 9.7048, 46.2718)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB8 #6CB82F
analogous
#372FB8 #7B2FB8 #B82FB0
triadic
#7B2FB8 #B87B2F #2FB87B
tetradic
#7B2FB8 #B8372F #6CB82F #2FB0B8
square
#7B2FB8 #B8372F #6CB82F #2FB0B8
split-complementary
#7B2FB8 #B0B82F #2FB837
monochromatic
#3A1657 #5A2387 #7B2FB8 #9952D3 #B682DF

Accessibility & contrast

On white

7.14
#7B2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7B2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB8#FFFFFF#000000##FFFFFF
##7B2FB81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#705171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b2fb8;
/* rgb */ color: rgb(123, 47, 184);
/* oklch */ color: oklch(48.5% 0.203 305.1);
Tailwind
colors: {
  custom: {
    50: '#a76fce',
    500: '#7b2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb8;
$custom-light: #a76fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb8",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 273.285,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4849,
    "c": 0.20336,
    "h": 305.1
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#7B2FB8
secondary
#9DC87B
accent
#E2458B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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