#7F229E#7F229E

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

Color values

HEX#7F229E
RGBrgb(127, 34, 158)
HSLhsl(285, 65%, 38%)
HSVhsv(285, 78%, 62%)
CMYKcmyk(19.6%, 78.5%, 0%, 38%)
CIE-LABlab(34.24, 56.58, -47.84)
CIE-LCHlch(34.24, 74.10, 319.78°)
OKLaboklab(45.84% 0.139 -0.1349)
OKLCHoklch(45.84% 0.194 315.8)
XYZxyz(15.4950, 8.1253, 33.0933)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F229E #419E22
analogous
#41229E #7F229E #9E227F
triadic
#7F229E #9E7F22 #229E7F
tetradic
#7F229E #9E4122 #419E22 #227F9E
square
#7F229E #9E4122 #419E22 #227F9E
split-complementary
#7F229E #7F9E22 #229E41
monochromatic
#2E0C39 #57176C #7F229E #A72DD0 #BD5EDC

Accessibility & contrast

On white

8.00
#7F229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7F229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F229E
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F229E#FFFFFF#000000##FFFFFF
##7F229E1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1F539B
Tritanopia (blue-blind)
#7D3E60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f229e;
/* rgb */ color: rgb(127, 34, 158);
/* oklch */ color: oklch(45.8% 0.194 315.8);
Tailwind
colors: {
  custom: {
    50: '#a868bb',
    500: '#7f229e',
    950: '#000000',
  },
}
SCSS
$custom: #7f229e;
$custom-light: #a868bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f229e",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 285,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45844,
    "c": 0.1937,
    "h": 315.8
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#7F229E
secondary
#74C15B
accent
#E8406A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F229E

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

Preview Lab → · Contrast checker → · Palette generator →

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