#7F227C#7F227C

#7F227C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.164 H 329.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7F227C
RGBrgb(127, 34, 124)
HSLhsl(302, 58%, 32%)
HSVhsv(302, 73%, 50%)
CMYKcmyk(0%, 73.2%, 2.4%, 50.2%)
CIE-LABlab(32.06, 50.21, -30.36)
CIE-LCHlch(32.06, 58.67, 328.84°)
OKLaboklab(43.59% 0.1415 -0.0839)
OKLCHoklch(43.59% 0.164 329.3)
XYZxyz(12.9624, 7.1123, 19.7550)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F227C #227F25
analogous
#54227F #7F227C #7F224E
triadic
#7F227C #7C7F22 #227C7F
tetradic
#7F227C #7F5422 #227F25 #224E7F
square
#7F227C #7F5422 #227F25 #224E7F
split-complementary
#7F227C #4E7F22 #227F54
monochromatic
#1E081E #4F154D #7F227C #AF2FAB #CF4CCB

Accessibility & contrast

On white

8.67
#7F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F227C
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F227C#FFFFFF#000000##FFFFFF
##7F227C1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437F
Deuteranopia (green-blind)
#3C507A
Tritanopia (blue-blind)
#842F4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f227c;
/* rgb */ color: rgb(127, 34, 124);
/* oklch */ color: oklch(43.6% 0.164 329.3);
Tailwind
colors: {
  custom: {
    50: '#a767a2',
    500: '#7f227c',
    950: '#000000',
  },
}
SCSS
$custom: #7f227c;
$custom-light: #a767a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f227c",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 301.935,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43594,
    "c": 0.16445,
    "h": 329.3
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#7F227C
secondary
#4BB24F
accent
#E14C47
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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