#7C226F#7C226F

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

Color values

HEX#7C226F
RGBrgb(124, 34, 111)
HSLhsl(309, 57%, 31%)
HSVhsv(309, 73%, 49%)
CMYKcmyk(0%, 72.6%, 10.5%, 51.4%)
CIE-LABlab(30.83, 47.27, -24.11)
CIE-LCHlch(30.83, 53.06, 332.97°)
OKLaboklab(42.37% 0.1373 -0.0659)
OKLCHoklch(42.37% 0.152 334.4)
XYZxyz(11.7536, 6.5778, 15.6865)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C226F #227C2F
analogous
#5C227C #7C226F #7C2242
triadic
#7C226F #6F7C22 #226F7C
tetradic
#7C226F #7C5C22 #227C2F #22427C
square
#7C226F #7C5C22 #227C2F #22427C
split-complementary
#7C226F #427C22 #227C5C
monochromatic
#1C0819 #4C1544 #7C226F #AC2F9A #CE4BBB

Accessibility & contrast

On white

9.07
#7C226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7C226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C226F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C226F#FFFFFF#000000##FFFFFF
##7C226F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214071
Deuteranopia (green-blind)
#404D6D
Tritanopia (blue-blind)
#822945
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c226f;
/* rgb */ color: rgb(124, 34, 111);
/* oklch */ color: oklch(42.4% 0.152 334.4);
Tailwind
colors: {
  custom: {
    50: '#a56698',
    500: '#7c226f',
    950: '#000000',
  },
}
SCSS
$custom: #7c226f;
$custom-light: #a56698;
$custom-dark: #000000;
JSON
{
  "hex": "#7c226f",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 308.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42373,
    "c": 0.1523,
    "h": 334.4
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#7C226F
secondary
#4BAF59
accent
#E05E48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C226F

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

Preview Lab → · Contrast checker → · Palette generator →

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