#7B338E#7B338E

#7B338E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.156 H 318.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7B338E
RGBrgb(123, 51, 142)
HSLhsl(287, 47%, 38%)
HSVhsv(287, 64%, 56%)
CMYKcmyk(13.4%, 64.1%, 0%, 44.3%)
CIE-LABlab(35.07, 45.40, -36.80)
CIE-LCHlch(35.07, 58.44, 320.98°)
OKLaboklab(45.98% 0.117 -0.1028)
OKLCHoklch(45.98% 0.156 318.7)
XYZxyz(14.2340, 8.5322, 26.4830)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B338E #468E33
analogous
#4E338E #7B338E #8E3373
triadic
#7B338E #8E7B33 #338E7B
tetradic
#7B338E #8E4E33 #468E33 #33738E
square
#7B338E #8E4E33 #468E33 #33738E
split-complementary
#7B338E #738E33 #338E4E
monochromatic
#2D1334 #542361 #7B338E #A243BB #B870CC

Accessibility & contrast

On white

7.76
#7B338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7B338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B338E
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B338E#FFFFFF#000000##FFFFFF
##7B338E1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194E91
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#7B425C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b338e;
/* rgb */ color: rgb(123, 51, 142);
/* oklch */ color: oklch(46.0% 0.156 318.7);
Tailwind
colors: {
  custom: {
    50: '#a470af',
    500: '#7b338e',
    950: '#000000',
  },
}
SCSS
$custom: #7b338e;
$custom-light: #a470af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b338e",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 287.473,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45975,
    "c": 0.15574,
    "h": 318.7
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#7B338E
secondary
#79B469
accent
#D7516D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7B338E

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

Preview Lab → · Contrast checker → · Palette generator →

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