#7C226E#7C226E

#7C226E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.3% C 0.152 H 334.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7C226E
RGBrgb(124, 34, 110)
HSLhsl(309, 57%, 31%)
HSVhsv(309, 73%, 49%)
CMYKcmyk(0%, 72.6%, 11.3%, 51.4%)
CIE-LABlab(30.77, 47.11, -23.56)
CIE-LCHlch(30.77, 52.67, 333.43°)
OKLaboklab(42.32% 0.1372 -0.0643)
OKLCHoklch(42.32% 0.152 334.9)
XYZxyz(11.6988, 6.5559, 15.3981)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C226E #227C30
analogous
#5D227C #7C226E #7C2241
triadic
#7C226E #6E7C22 #226E7C
tetradic
#7C226E #7C5D22 #227C30 #22417C
square
#7C226E #7C5D22 #227C30 #22417C
split-complementary
#7C226E #417C22 #227C5D
monochromatic
#1C0819 #4C1543 #7C226E #AC2F99 #CE4BB9

Accessibility & contrast

On white

9.09
#7C226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7C226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C226E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C226E#FFFFFF#000000##FFFFFF
##7C226E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214070
Deuteranopia (green-blind)
#414D6C
Tritanopia (blue-blind)
#822945
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c226e;
/* rgb */ color: rgb(124, 34, 110);
/* oklch */ color: oklch(42.3% 0.152 334.9);
Tailwind
colors: {
  custom: {
    50: '#a56698',
    500: '#7c226e',
    950: '#000000',
  },
}
SCSS
$custom: #7c226e;
$custom-light: #a56698;
$custom-dark: #000000;
JSON
{
  "hex": "#7c226e",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 309.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42318,
    "c": 0.15152,
    "h": 334.9
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#7C226E
secondary
#4BAF5B
accent
#E05F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C226E

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

Preview Lab → · Contrast checker → · Palette generator →

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