#7C229F#7C229F

#7C229F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.194 H 314.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7C229F
RGBrgb(124, 34, 159)
HSLhsl(283, 65%, 38%)
HSVhsv(283, 79%, 62%)
CMYKcmyk(22%, 78.6%, 0%, 37.6%)
CIE-LABlab(33.84, 56.21, -49.12)
CIE-LCHlch(33.84, 74.65, 318.85°)
OKLaboklab(45.49% 0.1349 -0.1388)
OKLCHoklch(45.49% 0.194 314.2)
XYZxyz(15.1411, 7.9329, 33.5278)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C229F #459F22
analogous
#3D229F #7C229F #9F2283
triadic
#7C229F #9F7C22 #229F7C
tetradic
#7C229F #9F3D22 #459F22 #22839F
square
#7C229F #9F3D22 #459F22 #22839F
split-complementary
#7C229F #839F22 #229F3D
monochromatic
#2D0C3A #55176D #7C229F #A32DD1 #B95FDD

Accessibility & contrast

On white

8.12
#7C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7C229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C229F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C229F#FFFFFF#000000##FFFFFF
##7C229F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#17529C
Tritanopia (blue-blind)
#793F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c229f;
/* rgb */ color: rgb(124, 34, 159);
/* oklch */ color: oklch(45.5% 0.194 314.2);
Tailwind
colors: {
  custom: {
    50: '#a668bc',
    500: '#7c229f',
    950: '#000000',
  },
}
SCSS
$custom: #7c229f;
$custom-light: #a668bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c229f",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 283.2,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4549,
    "c": 0.19355,
    "h": 314.2
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#7C229F
secondary
#78C15B
accent
#E8406F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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