#7B2FC9#7B2FC9

#7B2FC9 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.220 H 300.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7B2FC9
RGBrgb(123, 47, 201)
HSLhsl(270, 62%, 49%)
HSVhsv(270, 77%, 79%)
CMYKcmyk(38.8%, 76.6%, 0%, 21.2%)
CIE-LABlab(38.66, 60.43, -66.22)
CIE-LCHlch(38.66, 89.65, 312.38°)
OKLaboklab(49.86% 0.1131 -0.1892)
OKLCHoklch(49.86% 0.22 300.9)
XYZxyz(19.7249, 10.4609, 56.2270)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FC9 #7DC92F
analogous
#2F30C9 #7B2FC9 #C82FC9
triadic
#7B2FC9 #C97B2F #2FC97B
tetradic
#7B2FC9 #C92F30 #7DC92F #2FC9C8
square
#7B2FC9 #C92F30 #7DC92F #2FC9C8
split-complementary
#7B2FC9 #C9C82F #30C92F
monochromatic
#3E1866 #5D2397 #7B2FC9 #9A5CD9 #B98EE5

Accessibility & contrast

On white

6.79
#7B2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7B2FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2FC9
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FC9#FFFFFF#000000##FFFFFF
##7B2FC91.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#69587B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b2fc9;
/* rgb */ color: rgb(123, 47, 201);
/* oklch */ color: oklch(49.9% 0.220 300.9);
Tailwind
colors: {
  custom: {
    50: '#a870da',
    500: '#7b2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fc9;
$custom-light: #a870da;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fc9",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 269.61,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49859,
    "c": 0.22038,
    "h": 300.9
  },
  "luminance": 0.10461
}

Semantic roles & 50–950 ramp

primary
#7B2FC9
secondary
#AACF85
accent
#E54395
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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