#7B308B#7B308B

#7B308B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.157 H 320.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7B308B
RGBrgb(123, 48, 139)
HSLhsl(289, 49%, 37%)
HSVhsv(289, 65%, 55%)
CMYKcmyk(11.5%, 65.5%, 0%, 45.5%)
CIE-LABlab(34.37, 46.20, -36.06)
CIE-LCHlch(34.37, 58.60, 322.03°)
OKLaboklab(45.42% 0.1207 -0.1006)
OKLCHoklch(45.42% 0.157 320.2)
XYZxyz(13.8850, 8.1896, 25.2705)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B308B #408B30
analogous
#4E308B #7B308B #8B306E
triadic
#7B308B #8B7B30 #308B7B
tetradic
#7B308B #8B4E30 #408B30 #306E8B
square
#7B308B #8B4E30 #408B30 #306E8B
split-complementary
#7B308B #6E8B30 #308B4E
monochromatic
#2A1130 #53205E #7B308B #A340B8 #BA6ACC

Accessibility & contrast

On white

7.96
#7B308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B308B
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B308B#FFFFFF#000000##FFFFFF
##7B308B1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#385489
Tritanopia (blue-blind)
#7C3F59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b308b;
/* rgb */ color: rgb(123, 48, 139);
/* oklch */ color: oklch(45.4% 0.157 320.2);
Tailwind
colors: {
  custom: {
    50: '#a46ead',
    500: '#7b308b',
    950: '#000000',
  },
}
SCSS
$custom: #7b308b;
$custom-light: #a46ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7b308b",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 289.451,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45416,
    "c": 0.15717,
    "h": 320.2
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

primary
#7B308B
secondary
#72B364
accent
#D85068
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B308B

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

Preview Lab → · Contrast checker → · Palette generator →

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