#7B2FB2#7B2FB2

#7B2FB2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.197 H 306.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7B2FB2
RGBrgb(123, 47, 178)
HSLhsl(275, 58%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(30.9%, 73.6%, 0%, 30.2%)
CIE-LABlab(36.85, 55.11, -55.64)
CIE-LCHlch(36.85, 78.31, 314.72°)
OKLaboklab(48.03% 0.1181 -0.1581)
OKLCHoklch(48.03% 0.197 306.8)
XYZxyz(17.2190, 9.4585, 43.0294)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB2 #66B22F
analogous
#3A2FB2 #7B2FB2 #B22FA8
triadic
#7B2FB2 #B27B2F #2FB27B
tetradic
#7B2FB2 #B23A2F #66B22F #2FA8B2
square
#7B2FB2 #B23A2F #66B22F #2FA8B2
split-complementary
#7B2FB2 #A8B22F #2FB23A
monochromatic
#381551 #5A2282 #7B2FB2 #9A4ED0 #B57EDD

Accessibility & contrast

On white

7.26
#7B2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7B2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB2#FFFFFF#000000##FFFFFF
##7B2FB21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#724E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2fb2;
/* rgb */ color: rgb(123, 47, 178);
/* oklch */ color: oklch(48.0% 0.197 306.8);
Tailwind
colors: {
  custom: {
    50: '#a66fca',
    500: '#7b2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb2;
$custom-light: #a66fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb2",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 274.809,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48026,
    "c": 0.19734,
    "h": 306.8
  },
  "luminance": 0.09458
}

Semantic roles & 50–950 ramp

primary
#7B2FB2
secondary
#98C677
accent
#E14687
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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