#7B308D#7B308D

#7B308D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.159 H 319.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7B308D
RGBrgb(123, 48, 141)
HSLhsl(288, 49%, 37%)
HSVhsv(288, 66%, 55%)
CMYKcmyk(12.8%, 66%, 0%, 44.7%)
CIE-LABlab(34.50, 46.61, -37.09)
CIE-LCHlch(34.50, 59.57, 321.49°)
OKLaboklab(45.54% 0.1207 -0.1037)
OKLCHoklch(45.54% 0.159 319.3)
XYZxyz(14.0324, 8.2486, 26.0471)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B308D #428D30
analogous
#4D308D #7B308D #8D3071
triadic
#7B308D #8D7B30 #308D7B
tetradic
#7B308D #8D4D30 #428D30 #30718D
square
#7B308D #8D4D30 #428D30 #30718D
split-complementary
#7B308D #718D30 #308D4D
monochromatic
#2B1132 #53205F #7B308D #A340BB #BA6BCD

Accessibility & contrast

On white

7.93
#7B308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7B308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B308D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B308D#FFFFFF#000000##FFFFFF
##7B308D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C90
Deuteranopia (green-blind)
#36548B
Tritanopia (blue-blind)
#7B405A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b308d;
/* rgb */ color: rgb(123, 48, 141);
/* oklch */ color: oklch(45.5% 0.159 319.3);
Tailwind
colors: {
  custom: {
    50: '#a46eaf',
    500: '#7b308d',
    950: '#000000',
  },
}
SCSS
$custom: #7b308d;
$custom-light: #a46eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b308d",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 288.387,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45542,
    "c": 0.15912,
    "h": 319.3
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#7B308D
secondary
#74B465
accent
#D94F6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B308D

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

Preview Lab → · Contrast checker → · Palette generator →

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