#7D2F8B#7D2F8B

#7D2F8B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.160 H 321.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7D2F8B
RGBrgb(125, 47, 139)
HSLhsl(291, 49%, 36%)
HSVhsv(291, 66%, 55%)
CMYKcmyk(10.1%, 66.2%, 0%, 45.5%)
CIE-LABlab(34.51, 47.16, -35.81)
CIE-LCHlch(34.51, 59.22, 322.79°)
OKLaboklab(45.58% 0.1245 -0.0999)
OKLCHoklch(45.58% 0.16 321.3)
XYZxyz(14.1336, 8.2578, 25.2705)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F8B #3D8B2F
analogous
#4F2F8B #7D2F8B #8B2F6B
triadic
#7D2F8B #8B7D2F #2F8B7D
tetradic
#7D2F8B #8B4F2F #3D8B2F #2F6B8B
square
#7D2F8B #8B4F2F #3D8B2F #2F6B8B
split-complementary
#7D2F8B #6B8B2F #2F8B4F
monochromatic
#2B1030 #54205D #7D2F8B #A63EB9 #BD68CC

Accessibility & contrast

On white

7.92
#7D2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7D2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F8B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F8B#FFFFFF#000000##FFFFFF
##7D2F8B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C8E
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#7E3E59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2f8b;
/* rgb */ color: rgb(125, 47, 139);
/* oklch */ color: oklch(45.6% 0.160 321.3);
Tailwind
colors: {
  custom: {
    50: '#a56ead',
    500: '#7d2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f8b;
$custom-light: #a56ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f8b",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 290.87,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45578,
    "c": 0.15957,
    "h": 321.3
  },
  "luminance": 0.08257
}

Semantic roles & 50–950 ramp

primary
#7D2F8B
secondary
#6FB363
accent
#D94F64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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