#7B308F#7B308F

#7B308F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.161 H 318.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7B308F
RGBrgb(123, 48, 143)
HSLhsl(287, 50%, 37%)
HSVhsv(287, 66%, 56%)
CMYKcmyk(14%, 66.4%, 0%, 43.9%)
CIE-LABlab(34.62, 47.02, -38.13)
CIE-LCHlch(34.62, 60.54, 320.96°)
OKLaboklab(45.67% 0.1207 -0.1067)
OKLCHoklch(45.67% 0.161 318.5)
XYZxyz(14.1826, 8.3086, 26.8379)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B308F #448F30
analogous
#4B308F #7B308F #8F3074
triadic
#7B308F #8F7B30 #308F7B
tetradic
#7B308F #8F4B30 #448F30 #30748F
square
#7B308F #8F4B30 #448F30 #30748F
split-complementary
#7B308F #748F30 #308F4B
monochromatic
#2C1133 #542161 #7B308F #A23FBD #B96CCE

Accessibility & contrast

On white

7.89
#7B308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B308F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B308F#FFFFFF#000000##FFFFFF
##7B308F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C92
Deuteranopia (green-blind)
#35548D
Tritanopia (blue-blind)
#7B415B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b308f;
/* rgb */ color: rgb(123, 48, 143);
/* oklch */ color: oklch(45.7% 0.161 318.5);
Tailwind
colors: {
  custom: {
    50: '#a46eb0',
    500: '#7b308f',
    950: '#000000',
  },
}
SCSS
$custom: #7b308f;
$custom-light: #a46eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b308f",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 287.368,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45669,
    "c": 0.16109,
    "h": 318.5
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#7B308F
secondary
#77B566
accent
#D94F6C
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B308F

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

Preview Lab → · Contrast checker → · Palette generator →

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