#7B239D#7B239D

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

Color values

HEX#7B239D
RGBrgb(123, 35, 157)
HSLhsl(283, 64%, 38%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(21.7%, 77.7%, 0%, 38.4%)
CIE-LABlab(33.66, 55.25, -48.20)
CIE-LCHlch(33.66, 73.32, 318.90°)
OKLaboklab(45.29% 0.1331 -0.1361)
OKLCHoklch(45.29% 0.19 314.3)
XYZxyz(14.8542, 7.8479, 32.6241)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B239D #459D23
analogous
#3E239D #7B239D #9D2382
triadic
#7B239D #9D7B23 #239D7B
tetradic
#7B239D #9D3E23 #459D23 #23829D
square
#7B239D #9D3E23 #459D23 #23829D
split-complementary
#7B239D #829D23 #239D3E
monochromatic
#2D0D39 #54186B #7B239D #A22ECF #B95FDB

Accessibility & contrast

On white

8.17
#7B239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B239D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B239D#FFFFFF#000000##FFFFFF
##7B239D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#1A519A
Tritanopia (blue-blind)
#783F5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b239d;
/* rgb */ color: rgb(123, 35, 157);
/* oklch */ color: oklch(45.3% 0.190 314.3);
Tailwind
colors: {
  custom: {
    50: '#a568bb',
    500: '#7b239d',
    950: '#000000',
  },
}
SCSS
$custom: #7b239d;
$custom-light: #a568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b239d",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 283.279,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45287,
    "c": 0.19038,
    "h": 314.3
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B239D

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

Preview Lab → · Contrast checker → · Palette generator →

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