#7B308E#7B308E

#7B308E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.160 H 318.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7B308E
RGBrgb(123, 48, 142)
HSLhsl(288, 49%, 37%)
HSVhsv(288, 66%, 56%)
CMYKcmyk(13.4%, 66.2%, 0%, 44.3%)
CIE-LABlab(34.56, 46.82, -37.61)
CIE-LCHlch(34.56, 60.05, 321.22°)
OKLaboklab(45.61% 0.1207 -0.1052)
OKLCHoklch(45.61% 0.16 318.9)
XYZxyz(14.1072, 8.2785, 26.4408)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B308E #438E30
analogous
#4C308E #7B308E #8E3072
triadic
#7B308E #8E7B30 #308E7B
tetradic
#7B308E #8E4C30 #438E30 #30728E
square
#7B308E #8E4C30 #438E30 #30728E
split-complementary
#7B308E #728E30 #308E4C
monochromatic
#2C1133 #532160 #7B308E #A33FBC #B96BCD

Accessibility & contrast

On white

7.91
#7B308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B308E
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B308E#FFFFFF#000000##FFFFFF
##7B308E1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C91
Deuteranopia (green-blind)
#36548C
Tritanopia (blue-blind)
#7B405B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b308e;
/* rgb */ color: rgb(123, 48, 142);
/* oklch */ color: oklch(45.6% 0.160 318.9);
Tailwind
colors: {
  custom: {
    50: '#a46eaf',
    500: '#7b308e',
    950: '#000000',
  },
}
SCSS
$custom: #7b308e;
$custom-light: #a46eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b308e",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 287.872,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.1601,
    "h": 318.9
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#7B308E
secondary
#75B465
accent
#D94F6B
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B308E

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

Preview Lab → · Contrast checker → · Palette generator →

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