#7D319B#7D319B

#7D319B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.172 H 314.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7D319B
RGBrgb(125, 49, 155)
HSLhsl(283, 52%, 40%)
HSVhsv(283, 68%, 61%)
CMYKcmyk(19.4%, 68.4%, 0%, 39.2%)
CIE-LABlab(35.84, 49.57, -43.48)
CIE-LCHlch(35.84, 65.93, 318.75°)
OKLaboklab(46.85% 0.1216 -0.1223)
OKLCHoklch(46.85% 0.172 314.8)
XYZxyz(15.4712, 8.9237, 31.9115)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D319B #4F9B31
analogous
#48319B #7D319B #9B3184
triadic
#7D319B #9B7D31 #319B7D
tetradic
#7D319B #9B4831 #4F9B31 #31849B
square
#7D319B #9B4831 #4F9B31 #31849B
split-complementary
#7D319B #849B31 #319B48
monochromatic
#32143E #58226D #7D319B #A045C4 #B873D3

Accessibility & contrast

On white

7.54
#7D319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7D319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D319B
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D319B#FFFFFF#000000##FFFFFF
##7D319B1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#2E5699
Tritanopia (blue-blind)
#7B4662
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d319b;
/* rgb */ color: rgb(125, 49, 155);
/* oklch */ color: oklch(46.9% 0.172 314.8);
Tailwind
colors: {
  custom: {
    50: '#a66fb9',
    500: '#7d319b',
    950: '#000000',
  },
}
SCSS
$custom: #7d319b;
$custom-light: #a66fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d319b",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 283.019,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.46851,
    "c": 0.17245,
    "h": 314.8
  },
  "luminance": 0.08923
}

Semantic roles & 50–950 ramp

primary
#7D319B
secondary
#83BB6D
accent
#DB4C75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7D319B

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

Preview Lab → · Contrast checker → · Palette generator →

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