#7D2EB8#7D2EB8

#7D2EB8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.205 H 306.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7D2EB8
RGBrgb(125, 46, 184)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 72%)
CMYKcmyk(32.1%, 75%, 0%, 27.8%)
CIE-LABlab(37.44, 57.26, -58.24)
CIE-LCHlch(37.44, 81.67, 314.51°)
OKLaboklab(48.64% 0.1207 -0.1656)
OKLCHoklch(48.64% 0.205 306.1)
XYZxyz(18.0843, 9.7748, 46.2721)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EB8 #69B82E
analogous
#382EB8 #7D2EB8 #B82EAE
triadic
#7D2EB8 #B87D2E #2EB87D
tetradic
#7D2EB8 #B8382E #69B82E #2EAEB8
square
#7D2EB8 #B8382E #69B82E #2EAEB8
split-complementary
#7D2EB8 #AEB82E #2EB838
monochromatic
#3A1656 #5C2287 #7D2EB8 #9B50D3 #B781DF

Accessibility & contrast

On white

7.11
#7D2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7D2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EB8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EB8#FFFFFF#000000##FFFFFF
##7D2EB81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#725071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2eb8;
/* rgb */ color: rgb(125, 46, 184);
/* oklch */ color: oklch(48.6% 0.205 306.1);
Tailwind
colors: {
  custom: {
    50: '#a86fce',
    500: '#7d2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eb8;
$custom-light: #a86fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eb8",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 274.348,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48638,
    "c": 0.20492,
    "h": 306.1
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#7D2EB8
secondary
#9BC879
accent
#E34588
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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