#7B338F#7B338F

#7B338F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.0% C 0.157 H 318.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7B338F
RGBrgb(123, 51, 143)
HSLhsl(287, 47%, 38%)
HSVhsv(287, 64%, 56%)
CMYKcmyk(14%, 64.3%, 0%, 43.9%)
CIE-LABlab(35.13, 45.61, -37.31)
CIE-LCHlch(35.13, 58.93, 320.71°)
OKLaboklab(46.04% 0.117 -0.1043)
OKLCHoklch(46.04% 0.157 318.3)
XYZxyz(14.3095, 8.5624, 26.8802)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B338F #478F33
analogous
#4D338F #7B338F #8F3375
triadic
#7B338F #8F7B33 #338F7B
tetradic
#7B338F #8F4D33 #478F33 #33758F
square
#7B338F #8F4D33 #478F33 #33758F
split-complementary
#7B338F #758F33 #338F4D
monochromatic
#2D1335 #542362 #7B338F #A243BC #B870CC

Accessibility & contrast

On white

7.74
#7B338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B338F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B338F#FFFFFF#000000##FFFFFF
##7B338F1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174E92
Deuteranopia (green-blind)
#37558D
Tritanopia (blue-blind)
#7B435C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b338f;
/* rgb */ color: rgb(123, 51, 143);
/* oklch */ color: oklch(46.0% 0.157 318.3);
Tailwind
colors: {
  custom: {
    50: '#a470b0',
    500: '#7b338f',
    950: '#000000',
  },
}
SCSS
$custom: #7b338f;
$custom-light: #a470b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b338f",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 286.957,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46038,
    "c": 0.15674,
    "h": 318.3
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

primary
#7B338F
secondary
#7AB46A
accent
#D7516E
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7B338F

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

Preview Lab → · Contrast checker → · Palette generator →

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