#7838AD#7838AD

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

Color values

HEX#7838AD
RGBrgb(120, 56, 173)
HSLhsl(273, 51%, 45%)
HSVhsv(273, 68%, 68%)
CMYKcmyk(30.6%, 67.6%, 0%, 32.2%)
CIE-LABlab(37.55, 49.23, -51.56)
CIE-LCHlch(37.55, 71.29, 313.67°)
OKLaboklab(48.32% 0.1053 -0.1462)
OKLCHoklch(48.32% 0.18 305.8)
XYZxyz(16.7011, 9.8387, 40.5463)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838AD #6DAD38
analogous
#3E38AD #7838AD #AD38A7
triadic
#7838AD #AD7838 #38AD78
tetradic
#7838AD #AD3E38 #6DAD38 #38A7AD
square
#7838AD #AD3E38 #6DAD38 #38A7AD
split-complementary
#7838AD #A7AD38 #38AD3E
monochromatic
#381A51 #58297F #7838AD #9659C9 #B487D8

Accessibility & contrast

On white

7.08
#7838AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7838AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7838AD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838AD#FFFFFF#000000##FFFFFF
##7838AD1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B1
Deuteranopia (green-blind)
#1659AA
Tritanopia (blue-blind)
#6F526E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7838ad;
/* rgb */ color: rgb(120, 56, 173);
/* oklch */ color: oklch(48.3% 0.180 305.8);
Tailwind
colors: {
  custom: {
    50: '#a373c6',
    500: '#7838ad',
    950: '#000000',
  },
}
SCSS
$custom: #7838ad;
$custom-light: #a373c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7838ad",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 272.821,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48323,
    "c": 0.18022,
    "h": 305.8
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#7838AD
secondary
#9DC27F
accent
#DB4D8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7838AD

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

Preview Lab → · Contrast checker → · Palette generator →

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