#7D2EA5#7D2EA5

#7D2EA5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.186 H 311.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7D2EA5
RGBrgb(125, 46, 165)
HSLhsl(280, 56%, 41%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24.2%, 72.1%, 0%, 35.3%)
CIE-LABlab(36.04, 53.04, -49.18)
CIE-LCHlch(36.04, 72.33, 317.16°)
OKLaboklab(47.21% 0.1239 -0.139)
OKLCHoklch(47.21% 0.186 311.7)
XYZxyz(16.2247, 9.0310, 36.4785)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EA5 #56A52E
analogous
#422EA5 #7D2EA5 #A52E92
triadic
#7D2EA5 #A57D2E #2EA57D
tetradic
#7D2EA5 #A5422E #56A52E #2E92A5
square
#7D2EA5 #A5422E #56A52E #2E92A5
split-complementary
#7D2EA5 #92A52E #2EA542
monochromatic
#341345 #592175 #7D2EA5 #9E45CB #B775D8

Accessibility & contrast

On white

7.48
#7D2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7D2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EA5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EA5#FFFFFF#000000##FFFFFF
##7D2EA51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1E56A2
Tritanopia (blue-blind)
#784866
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2ea5;
/* rgb */ color: rgb(125, 46, 165);
/* oklch */ color: oklch(47.2% 0.186 311.7);
Tailwind
colors: {
  custom: {
    50: '#a76ec0',
    500: '#7d2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ea5;
$custom-light: #a76ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ea5",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 279.832,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47214,
    "c": 0.18619,
    "h": 311.7
  },
  "luminance": 0.09031
}

Semantic roles & 50–950 ramp

primary
#7D2EA5
secondary
#8AC06F
accent
#E0487B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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