#7F229C#7F229C

#7F229C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.192 H 316.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7F229C
RGBrgb(127, 34, 156)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 61%)
CMYKcmyk(18.6%, 78.2%, 0%, 38.8%)
CIE-LABlab(34.10, 56.18, -46.86)
CIE-LCHlch(34.10, 73.16, 320.17°)
OKLaboklab(45.7% 0.1393 -0.132)
OKLCHoklch(45.7% 0.192 316.5)
XYZxyz(15.3243, 8.0570, 32.1940)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F229C #3F9C22
analogous
#42229C #7F229C #9C227C
triadic
#7F229C #9C7F22 #229C7F
tetradic
#7F229C #9C4222 #3F9C22 #227C9C
square
#7F229C #9C4222 #3F9C22 #227C9C
split-complementary
#7F229C #7C9C22 #229C42
monochromatic
#2D0C38 #56176A #7F229C #A82DCE #BD5DDC

Accessibility & contrast

On white

8.04
#7F229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F229C
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F229C#FFFFFF#000000##FFFFFF
##7F229C1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#225399
Tritanopia (blue-blind)
#7D3D5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f229c;
/* rgb */ color: rgb(127, 34, 156);
/* oklch */ color: oklch(45.7% 0.192 316.5);
Tailwind
colors: {
  custom: {
    50: '#a868ba',
    500: '#7f229c',
    950: '#000000',
  },
}
SCSS
$custom: #7f229c;
$custom-light: #a868ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f229c",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 285.738,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45699,
    "c": 0.19193,
    "h": 316.5
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7F229C
secondary
#72C05A
accent
#E74168
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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