#7C229B#7C229B

#7C229B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.190 H 315.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7C229B
RGBrgb(124, 34, 155)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 61%)
CMYKcmyk(20%, 78.1%, 0%, 39.2%)
CIE-LABlab(33.55, 55.39, -47.16)
CIE-LCHlch(33.55, 72.75, 319.59°)
OKLaboklab(45.2% 0.1356 -0.133)
OKLCHoklch(45.2% 0.19 315.5)
XYZxyz(14.7997, 7.7963, 31.7292)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C229B #419B22
analogous
#40229B #7C229B #9B227E
triadic
#7C229B #9B7C22 #229B7C
tetradic
#7C229B #9B4022 #419B22 #227E9B
square
#7C229B #9B4022 #419B22 #227E9B
split-complementary
#7C229B #7E9B22 #229B40
monochromatic
#2C0C37 #541769 #7C229B #A42DCD #BB5CDB

Accessibility & contrast

On white

8.21
#7C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C229B
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C229B#FFFFFF#000000##FFFFFF
##7C229B1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#1E5198
Tritanopia (blue-blind)
#7A3E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c229b;
/* rgb */ color: rgb(124, 34, 155);
/* oklch */ color: oklch(45.2% 0.190 315.5);
Tailwind
colors: {
  custom: {
    50: '#a668b9',
    500: '#7c229b',
    950: '#000000',
  },
}
SCSS
$custom: #7c229b;
$custom-light: #a668b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c229b",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 284.628,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45196,
    "c": 0.18994,
    "h": 315.5
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#7C229B
secondary
#73C059
accent
#E7416B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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