#7C229E#7C229E

#7C229E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.193 H 314.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7C229E
RGBrgb(124, 34, 158)
HSLhsl(284, 65%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(21.5%, 78.5%, 0%, 38%)
CIE-LABlab(33.77, 56.00, -48.63)
CIE-LCHlch(33.77, 74.17, 319.03°)
OKLaboklab(45.42% 0.1351 -0.1373)
OKLCHoklch(45.42% 0.193 314.5)
XYZxyz(15.0547, 7.8983, 33.0726)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C229E #449E22
analogous
#3E229E #7C229E #9E2282
triadic
#7C229E #9E7C22 #229E7C
tetradic
#7C229E #9E3E22 #449E22 #22829E
square
#7C229E #9E3E22 #449E22 #22829E
split-complementary
#7C229E #829E22 #229E3E
monochromatic
#2D0C39 #54176C #7C229E #A42DD0 #BA5EDC

Accessibility & contrast

On white

8.14
#7C229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7C229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C229E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C229E#FFFFFF#000000##FFFFFF
##7C229E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#19529B
Tritanopia (blue-blind)
#793F60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c229e;
/* rgb */ color: rgb(124, 34, 158);
/* oklch */ color: oklch(45.4% 0.193 314.5);
Tailwind
colors: {
  custom: {
    50: '#a668bb',
    500: '#7c229e',
    950: '#000000',
  },
}
SCSS
$custom: #7c229e;
$custom-light: #a668bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c229e",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 283.548,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45416,
    "c": 0.19264,
    "h": 314.5
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#7C229E
secondary
#77C15B
accent
#E8406E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C229E

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

Preview Lab → · Contrast checker → · Palette generator →

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