#7D229B#7D229B

#7D229B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.190 H 316.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7D229B
RGBrgb(125, 34, 155)
HSLhsl(285, 64%, 37%)
HSVhsv(285, 78%, 61%)
CMYKcmyk(19.4%, 78.1%, 0%, 39.2%)
CIE-LABlab(33.71, 55.59, -46.89)
CIE-LCHlch(33.71, 72.73, 319.85°)
OKLaboklab(45.34% 0.1369 -0.1322)
OKLCHoklch(45.34% 0.19 316)
XYZxyz(14.9449, 7.8712, 31.7360)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D229B #409B22
analogous
#41229B #7D229B #9B227D
triadic
#7D229B #9B7D22 #229B7D
tetradic
#7D229B #9B4122 #409B22 #227D9B
square
#7D229B #9B4122 #409B22 #227D9B
split-complementary
#7D229B #7D9B22 #229B41
monochromatic
#2C0C37 #551769 #7D229B #A52DCD #BC5CDB

Accessibility & contrast

On white

8.16
#7D229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D229B
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D229B#FFFFFF#000000##FFFFFF
##7D229B1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#205298
Tritanopia (blue-blind)
#7B3D5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d229b;
/* rgb */ color: rgb(125, 34, 155);
/* oklch */ color: oklch(45.3% 0.190 316.0);
Tailwind
colors: {
  custom: {
    50: '#a768b9',
    500: '#7d229b',
    950: '#000000',
  },
}
SCSS
$custom: #7d229b;
$custom-light: #a768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d229b",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 285.124,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.1903,
    "h": 316
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#7D229B
secondary
#73C059
accent
#E7416A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D229B

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

Preview Lab → · Contrast checker → · Palette generator →

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