#7B309D#7B309D

#7B309D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.175 H 313.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7B309D
RGBrgb(123, 48, 157)
HSLhsl(281, 53%, 40%)
HSVhsv(281, 69%, 62%)
CMYKcmyk(21.7%, 69.4%, 0%, 38.4%)
CIE-LABlab(35.52, 49.99, -45.22)
CIE-LCHlch(35.52, 67.41, 317.87°)
OKLaboklab(46.6% 0.12 -0.1274)
OKLCHoklch(46.6% 0.175 313.3)
XYZxyz(15.3101, 8.7596, 32.7760)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B309D #529D30
analogous
#44309D #7B309D #9D3089
triadic
#7B309D #9D7B30 #309D7B
tetradic
#7B309D #9D4430 #529D30 #30899D
square
#7B309D #9D4430 #529D30 #30899D
split-complementary
#7B309D #899D30 #309D44
monochromatic
#32133F #56226E #7B309D #9D44C6 #B673D4

Accessibility & contrast

On white

7.63
#7B309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7B309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B309D
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B309D#FFFFFF#000000##FFFFFF
##7B309D1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#28559B
Tritanopia (blue-blind)
#774663
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b309d;
/* rgb */ color: rgb(123, 48, 157);
/* oklch */ color: oklch(46.6% 0.175 313.3);
Tailwind
colors: {
  custom: {
    50: '#a56fba',
    500: '#7b309d',
    950: '#000000',
  },
}
SCSS
$custom: #7b309d;
$custom-light: #a56fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b309d",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 281.284,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46604,
    "c": 0.17503,
    "h": 313.3
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

primary
#7B309D
secondary
#85BC6D
accent
#DD4B79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B309D

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

Preview Lab → · Contrast checker → · Palette generator →

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