#7838AC#7838AC

#7838AC is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.3% C 0.179 H 306.1°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7838AC
RGBrgb(120, 56, 172)
HSLhsl(273, 51%, 45%)
HSVhsv(273, 67%, 67%)
CMYKcmyk(30.2%, 67.4%, 0%, 32.5%)
CIE-LABlab(37.48, 48.99, -51.08)
CIE-LCHlch(37.48, 70.77, 313.81°)
OKLaboklab(48.25% 0.1054 -0.1448)
OKLCHoklch(48.25% 0.179 306.1)
XYZxyz(16.6047, 9.8001, 40.0386)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838AC #6CAC38
analogous
#3E38AC #7838AC #AC38A6
triadic
#7838AC #AC7838 #38AC78
tetradic
#7838AC #AC3E38 #6CAC38 #38A6AC
square
#7838AC #AC3E38 #6CAC38 #38A6AC
split-complementary
#7838AC #A6AC38 #38AC3E
monochromatic
#381A50 #58297E #7838AC #9658C9 #B387D8

Accessibility & contrast

On white

7.09
#7838AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7838AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7838AC
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838AC#FFFFFF#000000##FFFFFF
##7838AC1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#1859A9
Tritanopia (blue-blind)
#6F516D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7838ac;
/* rgb */ color: rgb(120, 56, 172);
/* oklch */ color: oklch(48.3% 0.179 306.1);
Tailwind
colors: {
  custom: {
    50: '#a373c5',
    500: '#7838ac',
    950: '#000000',
  },
}
SCSS
$custom: #7838ac;
$custom-light: #a373c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7838ac",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 273.103,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48251,
    "c": 0.17913,
    "h": 306.1
  },
  "luminance": 0.098
}

Semantic roles & 50–950 ramp

primary
#7838AC
secondary
#9CC27E
accent
#DA4D8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7838AC

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

Preview Lab → · Contrast checker → · Palette generator →

#7838AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva