#7A239D#7A239D

#7A239D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.190 H 313.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7A239D
RGBrgb(122, 35, 157)
HSLhsl(283, 64%, 38%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(22.3%, 77.7%, 0%, 38.4%)
CIE-LABlab(33.51, 55.06, -48.46)
CIE-LCHlch(33.51, 73.35, 318.65°)
OKLaboklab(45.15% 0.1318 -0.1369)
OKLCHoklch(45.15% 0.19 313.9)
XYZxyz(14.7118, 7.7745, 32.6174)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A239D #469D23
analogous
#3D239D #7A239D #9D2383
triadic
#7A239D #9D7A23 #239D7A
tetradic
#7A239D #9D3D23 #469D23 #23839D
square
#7A239D #9D3D23 #469D23 #23839D
split-complementary
#7A239D #839D23 #239D3D
monochromatic
#2C0D39 #53186B #7A239D #A12ECF #B85FDB

Accessibility & contrast

On white

8.22
#7A239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7A239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A239D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A239D#FFFFFF#000000##FFFFFF
##7A239D1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#18519A
Tritanopia (blue-blind)
#763F5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a239d;
/* rgb */ color: rgb(122, 35, 157);
/* oklch */ color: oklch(45.1% 0.190 313.9);
Tailwind
colors: {
  custom: {
    50: '#a568bb',
    500: '#7a239d',
    950: '#000000',
  },
}
SCSS
$custom: #7a239d;
$custom-light: #a568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a239d",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 282.787,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45146,
    "c": 0.19003,
    "h": 313.9
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#7A239D
secondary
#78C05C
accent
#E74171
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A239D

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

Preview Lab → · Contrast checker → · Palette generator →

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