#7F229D#7F229D

#7F229D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.193 H 316.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7F229D
RGBrgb(127, 34, 157)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 62%)
CMYKcmyk(19.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(34.17, 56.38, -47.35)
CIE-LCHlch(34.17, 73.63, 319.97°)
OKLaboklab(45.77% 0.1391 -0.1335)
OKLCHoklch(45.77% 0.193 316.2)
XYZxyz(15.4093, 8.0910, 32.6418)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F229D #409D22
analogous
#42229D #7F229D #9D227D
triadic
#7F229D #9D7F22 #229D7F
tetradic
#7F229D #9D4222 #409D22 #227D9D
square
#7F229D #9D4222 #409D22 #227D9D
split-complementary
#7F229D #7D9D22 #229D42
monochromatic
#2E0C38 #56176B #7F229D #A82DCF #BD5DDC

Accessibility & contrast

On white

8.02
#7F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F229D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F229D#FFFFFF#000000##FFFFFF
##7F229D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#21539A
Tritanopia (blue-blind)
#7D3E5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f229d;
/* rgb */ color: rgb(127, 34, 157);
/* oklch */ color: oklch(45.8% 0.193 316.2);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7f229d',
    950: '#000000',
  },
}
SCSS
$custom: #7f229d;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f229d",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 285.366,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45771,
    "c": 0.19281,
    "h": 316.2
  },
  "luminance": 0.0809
}

Semantic roles & 50–950 ramp

primary
#7F229D
secondary
#73C15A
accent
#E74069
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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