#7A338E#7A338E

#7A338E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.8% C 0.155 H 318.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7A338E
RGBrgb(122, 51, 142)
HSLhsl(287, 47%, 38%)
HSVhsv(287, 64%, 56%)
CMYKcmyk(14.1%, 64.1%, 0%, 44.3%)
CIE-LABlab(34.92, 45.15, -37.04)
CIE-LCHlch(34.92, 58.40, 320.63°)
OKLaboklab(45.84% 0.1157 -0.1036)
OKLCHoklch(45.84% 0.155 318.2)
XYZxyz(14.0917, 8.4588, 26.4764)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A338E #478E33
analogous
#4C338E #7A338E #8E3374
triadic
#7A338E #8E7A33 #338E7A
tetradic
#7A338E #8E4C33 #478E33 #33748E
square
#7A338E #8E4C33 #478E33 #33748E
split-complementary
#7A338E #748E33 #338E4C
monochromatic
#2D1334 #532361 #7A338E #A143BB #B770CC

Accessibility & contrast

On white

7.80
#7A338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A338E
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A338E#FFFFFF#000000##FFFFFF
##7A338E1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#7A435C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a338e;
/* rgb */ color: rgb(122, 51, 142);
/* oklch */ color: oklch(45.8% 0.155 318.2);
Tailwind
colors: {
  custom: {
    50: '#a370af',
    500: '#7a338e',
    950: '#000000',
  },
}
SCSS
$custom: #7a338e;
$custom-light: #a370af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a338e",
  "rgb": {
    "r": 122,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 286.813,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45838,
    "c": 0.15528,
    "h": 318.2
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#7A338E
secondary
#7AB469
accent
#D7516E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7A338E

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

Preview Lab → · Contrast checker → · Palette generator →

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