#7B238C#7B238C

#7B238C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.175 H 320.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#7B238C
RGBrgb(123, 35, 140)
HSLhsl(290, 60%, 34%)
HSVhsv(290, 75%, 55%)
CMYKcmyk(12.1%, 75%, 0%, 45.1%)
CIE-LABlab(32.50, 51.86, -39.67)
CIE-LCHlch(32.50, 65.29, 322.58°)
OKLaboklab(44.09% 0.1352 -0.1111)
OKLCHoklch(44.09% 0.175 320.6)
XYZxyz(13.5025, 7.3072, 25.5051)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B238C #348C23
analogous
#47238C #7B238C #8C2369
triadic
#7B238C #8C7B23 #238C7B
tetradic
#7B238C #8C4723 #348C23 #23698C
square
#7B238C #8C4723 #348C23 #23698C
split-complementary
#7B238C #698C23 #238C47
monochromatic
#250B2A #50175B #7B238C #A62FBD #C055D4

Accessibility & contrast

On white

8.53
#7B238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B238C
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B238C#FFFFFF#000000##FFFFFF
##7B238C1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2E508A
Tritanopia (blue-blind)
#7C3756
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b238c;
/* rgb */ color: rgb(123, 35, 140);
/* oklch */ color: oklch(44.1% 0.175 320.6);
Tailwind
colors: {
  custom: {
    50: '#a567ae',
    500: '#7b238c',
    950: '#000000',
  },
}
SCSS
$custom: #7b238c;
$custom-light: #a567ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7b238c",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 290.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44088,
    "c": 0.17504,
    "h": 320.6
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#7B238C
secondary
#63B852
accent
#E3455E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B238C

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

Preview Lab → · Contrast checker → · Palette generator →

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