#7B228F#7B228F

#7B228F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.179 H 319.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7B228F
RGBrgb(123, 34, 143)
HSLhsl(289, 62%, 35%)
HSVhsv(289, 76%, 56%)
CMYKcmyk(14%, 76.2%, 0%, 43.9%)
CIE-LABlab(32.57, 52.81, -41.41)
CIE-LCHlch(32.57, 67.11, 321.90°)
OKLaboklab(44.2% 0.1359 -0.1162)
OKLCHoklch(44.2% 0.179 319.5)
XYZxyz(13.6977, 7.3389, 26.6763)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B228F #368F22
analogous
#45228F #7B228F #8F226D
triadic
#7B228F #8F7B22 #228F7B
tetradic
#7B228F #8F4522 #368F22 #226D8F
square
#7B228F #8F4522 #368F22 #226D8F
split-complementary
#7B228F #6D8F22 #228F45
monochromatic
#260A2C #50165E #7B228F #A62EC0 #BF55D7

Accessibility & contrast

On white

8.51
#7B228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B228F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B228F#FFFFFF#000000##FFFFFF
##7B228F1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#2B508D
Tritanopia (blue-blind)
#7B3857
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b228f;
/* rgb */ color: rgb(123, 34, 143);
/* oklch */ color: oklch(44.2% 0.179 319.5);
Tailwind
colors: {
  custom: {
    50: '#a567b0',
    500: '#7b228f',
    950: '#000000',
  },
}
SCSS
$custom: #7b228f;
$custom-light: #a567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b228f",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 288.991,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44201,
    "c": 0.17883,
    "h": 319.5
  },
  "luminance": 0.07338
}

Semantic roles & 50–950 ramp

primary
#7B228F
secondary
#65BA52
accent
#E54361
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B228F

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

Preview Lab → · Contrast checker → · Palette generator →

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