#7B228D#7B228D

#7B228D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.177 H 320.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7B228D
RGBrgb(123, 34, 141)
HSLhsl(290, 61%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(32.43, 52.42, -40.39)
CIE-LCHlch(32.43, 66.17, 322.38°)
OKLaboklab(44.06% 0.1361 -0.1132)
OKLCHoklch(44.06% 0.177 320.2)
XYZxyz(13.5475, 7.2788, 25.8855)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B228D #348D22
analogous
#46228D #7B228D #8D226A
triadic
#7B228D #8D7B22 #228D7B
tetradic
#7B228D #8D4622 #348D22 #226A8D
square
#7B228D #8D4622 #348D22 #226A8D
split-complementary
#7B228D #6A8D22 #228D46
monochromatic
#250A2A #50165C #7B228D #A62EBE #C054D6

Accessibility & contrast

On white

8.55
#7B228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B228D
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B228D#FFFFFF#000000##FFFFFF
##7B228D1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#2D4F8B
Tritanopia (blue-blind)
#7C3756
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b228d;
/* rgb */ color: rgb(123, 34, 141);
/* oklch */ color: oklch(44.1% 0.177 320.2);
Tailwind
colors: {
  custom: {
    50: '#a567af',
    500: '#7b228d',
    950: '#000000',
  },
}
SCSS
$custom: #7b228d;
$custom-light: #a567af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b228d",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 289.907,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44064,
    "c": 0.17706,
    "h": 320.2
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#7B228D
secondary
#63B951
accent
#E4445F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B228D

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

Preview Lab → · Contrast checker → · Palette generator →

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