#7B307C#7B307C

#7B307C is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.5% C 0.143 H 327.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7B307C
RGBrgb(123, 48, 124)
HSLhsl(299, 44%, 34%)
HSVhsv(299, 61%, 49%)
CMYKcmyk(0.8%, 61.3%, 0%, 51.4%)
CIE-LABlab(33.52, 43.25, -28.10)
CIE-LCHlch(33.52, 51.57, 326.99°)
OKLaboklab(44.52% 0.12 -0.0775)
OKLCHoklch(44.52% 0.143 327.1)
XYZxyz(12.8632, 7.7809, 19.8892)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B307C #317C30
analogous
#55307C #7B307C #7C3057
triadic
#7B307C #7C7B30 #307C7B
tetradic
#7B307C #7C5530 #317C30 #30577C
square
#7B307C #7C5530 #317C30 #30577C
split-complementary
#7B307C #577C30 #307C55
monochromatic
#230E24 #4F1F50 #7B307C #A741A8 #C264C3

Accessibility & contrast

On white

8.22
#7B307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7B307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B307C
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B307C#FFFFFF#000000##FFFFFF
##7B307C1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497E
Deuteranopia (green-blind)
#41527A
Tritanopia (blue-blind)
#7E3A51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b307c;
/* rgb */ color: rgb(123, 48, 124);
/* oklch */ color: oklch(44.5% 0.143 327.1);
Tailwind
colors: {
  custom: {
    50: '#a46da2',
    500: '#7b307c',
    950: '#000000',
  },
}
SCSS
$custom: #7b307c;
$custom-light: #a46da2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b307c",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 299.211,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44521,
    "c": 0.14285,
    "h": 327.1
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#7B307C
secondary
#5FAA5E
accent
#D45456
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7B307C

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

Preview Lab → · Contrast checker → · Palette generator →

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