#7B2FB7#7B2FB7

#7B2FB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.202 H 305.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7B2FB7
RGBrgb(123, 47, 183)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 72%)
CMYKcmyk(32.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(37.23, 56.25, -57.99)
CIE-LCHlch(37.23, 80.79, 314.13°)
OKLaboklab(48.41% 0.1172 -0.165)
OKLCHoklch(48.41% 0.202 305.4)
XYZxyz(17.7302, 9.6630, 45.7217)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB7 #6BB72F
analogous
#372FB7 #7B2FB7 #B72FAF
triadic
#7B2FB7 #B77B2F #2FB77B
tetradic
#7B2FB7 #B7372F #6BB72F #2FAFB7
square
#7B2FB7 #B7372F #6BB72F #2FAFB7
split-complementary
#7B2FB7 #AFB72F #2FB737
monochromatic
#3A1656 #5A2286 #7B2FB7 #9951D2 #B682DF

Accessibility & contrast

On white

7.16
#7B2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7B2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB7#FFFFFF#000000##FFFFFF
##7B2FB71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#705071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b2fb7;
/* rgb */ color: rgb(123, 47, 183);
/* oklch */ color: oklch(48.4% 0.202 305.4);
Tailwind
colors: {
  custom: {
    50: '#a66fcd',
    500: '#7b2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb7;
$custom-light: #a66fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb7",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 273.529,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48412,
    "c": 0.20236,
    "h": 305.4
  },
  "luminance": 0.09663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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