#7B228E#7B228E

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

Color values

HEX#7B228E
RGBrgb(123, 34, 142)
HSLhsl(289, 61%, 35%)
HSVhsv(289, 76%, 56%)
CMYKcmyk(13.4%, 76.1%, 0%, 44.3%)
CIE-LABlab(32.50, 52.61, -40.90)
CIE-LCHlch(32.50, 66.64, 322.14°)
OKLaboklab(44.13% 0.136 -0.1147)
OKLCHoklch(44.13% 0.178 319.9)
XYZxyz(13.6223, 7.3087, 26.2791)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B228E #358E22
analogous
#45228E #7B228E #8E226B
triadic
#7B228E #8E7B22 #228E7B
tetradic
#7B228E #8E4522 #358E22 #226B8E
square
#7B228E #8E4522 #358E22 #226B8E
split-complementary
#7B228E #6B8E22 #228E45
monochromatic
#250A2B #50165D #7B228E #A62EBF #BF54D6

Accessibility & contrast

On white

8.53
#7B228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B228E
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B228E#FFFFFF#000000##FFFFFF
##7B228E1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2C4F8C
Tritanopia (blue-blind)
#7B3857
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b228e;
/* rgb */ color: rgb(123, 34, 142);
/* oklch */ color: oklch(44.1% 0.178 319.9);
Tailwind
colors: {
  custom: {
    50: '#a567b0',
    500: '#7b228e',
    950: '#000000',
  },
}
SCSS
$custom: #7b228e;
$custom-light: #a567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b228e",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 289.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44133,
    "c": 0.17794,
    "h": 319.9
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

primary
#7B228E
secondary
#64BA52
accent
#E44360
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B228E

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

Preview Lab → · Contrast checker → · Palette generator →

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