#7B308A#7B308A

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

Color values

HEX#7B308A
RGBrgb(123, 48, 138)
HSLhsl(290, 48%, 36%)
HSVhsv(290, 65%, 54%)
CMYKcmyk(10.9%, 65.2%, 0%, 45.9%)
CIE-LABlab(34.31, 46.00, -35.53)
CIE-LCHlch(34.31, 58.12, 322.31°)
OKLaboklab(45.35% 0.1207 -0.0991)
OKLCHoklch(45.35% 0.156 320.6)
XYZxyz(13.8122, 8.1605, 24.8874)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B308A #3F8A30
analogous
#4E308A #7B308A #8A306C
triadic
#7B308A #8A7B30 #308A7B
tetradic
#7B308A #8A4E30 #3F8A30 #306C8A
square
#7B308A #8A4E30 #3F8A30 #306C8A
split-complementary
#7B308A #6C8A30 #308A4E
monochromatic
#2A102F #53205D #7B308A #A340B7 #BB69CB

Accessibility & contrast

On white

7.98
#7B308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B308A
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B308A#FFFFFF#000000##FFFFFF
##7B308A1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8D
Deuteranopia (green-blind)
#395388
Tritanopia (blue-blind)
#7C3F58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b308a;
/* rgb */ color: rgb(123, 48, 138);
/* oklch */ color: oklch(45.4% 0.156 320.6);
Tailwind
colors: {
  custom: {
    50: '#a46eac',
    500: '#7b308a',
    950: '#000000',
  },
}
SCSS
$custom: #7b308a;
$custom-light: #a46eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7b308a",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 290,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45353,
    "c": 0.15619,
    "h": 320.6
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#7B308A
secondary
#71B264
accent
#D85067
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B308A

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

Preview Lab → · Contrast checker → · Palette generator →

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