#7F229B#7F229B

#7F229B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.191 H 316.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7F229B
RGBrgb(127, 34, 155)
HSLhsl(286, 64%, 37%)
HSVhsv(286, 78%, 61%)
CMYKcmyk(18.1%, 78.1%, 0%, 39.2%)
CIE-LABlab(34.03, 55.98, -46.36)
CIE-LCHlch(34.03, 72.69, 320.37°)
OKLaboklab(45.63% 0.1394 -0.1306)
OKLCHoklch(45.63% 0.191 316.9)
XYZxyz(15.2399, 8.0233, 31.7499)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F229B #3E9B22
analogous
#43229B #7F229B #9B227A
triadic
#7F229B #9B7F22 #229B7F
tetradic
#7F229B #9B4322 #3E9B22 #227A9B
square
#7F229B #9B4322 #3E9B22 #227A9B
split-complementary
#7F229B #7A9B22 #229B43
monochromatic
#2D0C37 #561769 #7F229B #A82DCD #BE5CDB

Accessibility & contrast

On white

8.06
#7F229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F229B
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F229B#FFFFFF#000000##FFFFFF
##7F229B1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f229b;
/* rgb */ color: rgb(127, 34, 155);
/* oklch */ color: oklch(45.6% 0.191 316.9);
Tailwind
colors: {
  custom: {
    50: '#a868b9',
    500: '#7f229b',
    950: '#000000',
  },
}
SCSS
$custom: #7f229b;
$custom-light: #a868b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f229b",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 286.116,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45628,
    "c": 0.19104,
    "h": 316.9
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#7F229B
secondary
#71C059
accent
#E74167
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F229B

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

Preview Lab → · Contrast checker → · Palette generator →

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