#7B239C#7B239C

#7B239C is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.189 H 314.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7B239C
RGBrgb(123, 35, 156)
HSLhsl(284, 63%, 37%)
HSVhsv(284, 78%, 61%)
CMYKcmyk(21.2%, 77.6%, 0%, 38.8%)
CIE-LABlab(33.59, 55.05, -47.71)
CIE-LCHlch(33.59, 72.85, 319.08°)
OKLaboklab(45.21% 0.1332 -0.1347)
OKLCHoklch(45.21% 0.189 314.7)
XYZxyz(14.7692, 7.8138, 32.1763)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B239C #449C23
analogous
#3E239C #7B239C #9C2381
triadic
#7B239C #9C7B23 #239C7B
tetradic
#7B239C #9C3E23 #449C23 #23819C
square
#7B239C #9C3E23 #449C23 #23819C
split-complementary
#7B239C #819C23 #239C3E
monochromatic
#2C0D38 #54186A #7B239C #A22ECE #B95EDB

Accessibility & contrast

On white

8.19
#7B239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7B239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B239C
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B239C#FFFFFF#000000##FFFFFF
##7B239C1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b239c;
/* rgb */ color: rgb(123, 35, 156);
/* oklch */ color: oklch(45.2% 0.189 314.7);
Tailwind
colors: {
  custom: {
    50: '#a568ba',
    500: '#7b239c',
    950: '#000000',
  },
}
SCSS
$custom: #7b239c;
$custom-light: #a568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b239c",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 283.636,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45213,
    "c": 0.18946,
    "h": 314.7
  },
  "luminance": 0.07813
}

Semantic roles & 50–950 ramp

primary
#7B239C
secondary
#77C05B
accent
#E6416E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B239C

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

Preview Lab → · Contrast checker → · Palette generator →

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