#7B309E#7B309E

#7B309E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.176 H 312.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7B309E
RGBrgb(123, 48, 158)
HSLhsl(281, 53%, 40%)
HSVhsv(281, 70%, 62%)
CMYKcmyk(22.2%, 69.6%, 0%, 38%)
CIE-LABlab(35.58, 50.21, -45.71)
CIE-LCHlch(35.58, 67.90, 317.69°)
OKLaboklab(46.67% 0.1199 -0.1289)
OKLCHoklch(46.67% 0.176 312.9)
XYZxyz(15.3958, 8.7939, 33.2275)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B309E #539E30
analogous
#44309E #7B309E #9E308A
triadic
#7B309E #9E7B30 #309E7B
tetradic
#7B309E #9E4430 #539E30 #308A9E
square
#7B309E #9E4430 #539E30 #308A9E
split-complementary
#7B309E #8A9E30 #309E44
monochromatic
#321340 #56226F #7B309E #9D45C6 #B674D5

Accessibility & contrast

On white

7.61
#7B309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7B309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B309E
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B309E#FFFFFF#000000##FFFFFF
##7B309E1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#27559C
Tritanopia (blue-blind)
#774763
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b309e;
/* rgb */ color: rgb(123, 48, 158);
/* oklch */ color: oklch(46.7% 0.176 312.9);
Tailwind
colors: {
  custom: {
    50: '#a56fbb',
    500: '#7b309e',
    950: '#000000',
  },
}
SCSS
$custom: #7b309e;
$custom-light: #a56fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b309e",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 280.909,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46673,
    "c": 0.17603,
    "h": 312.9
  },
  "luminance": 0.08793
}

Semantic roles & 50–950 ramp

primary
#7B309E
secondary
#86BD6D
accent
#DD4B79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B309E

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

Preview Lab → · Contrast checker → · Palette generator →

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