#7838AA#7838AA

#7838AA is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.177 H 306.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7838AA
RGBrgb(120, 56, 170)
HSLhsl(274, 50%, 44%)
HSVhsv(274, 67%, 67%)
CMYKcmyk(29.4%, 67.1%, 0%, 33.3%)
CIE-LABlab(37.34, 48.52, -50.11)
CIE-LCHlch(37.34, 69.75, 314.07°)
OKLaboklab(48.11% 0.1056 -0.142)
OKLCHoklch(48.11% 0.177 306.7)
XYZxyz(16.4141, 9.7239, 39.0346)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838AA #6AAA38
analogous
#3F38AA #7838AA #AA38A3
triadic
#7838AA #AA7838 #38AA78
tetradic
#7838AA #AA3F38 #6AAA38 #38A3AA
square
#7838AA #AA3F38 #6AAA38 #38A3AA
split-complementary
#7838AA #A3AA38 #38AA3F
monochromatic
#371A4E #58297C #7838AA #9757C8 #B385D7

Accessibility & contrast

On white

7.13
#7838AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7838AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7838AA#FFFFFF#000000##FFFFFF
##7838AA1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#1C58A7
Tritanopia (blue-blind)
#70516C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7838aa;
/* rgb */ color: rgb(120, 56, 170);
/* oklch */ color: oklch(48.1% 0.177 306.7);
Tailwind
colors: {
  custom: {
    50: '#a373c4',
    500: '#7838aa',
    950: '#000000',
  },
}
SCSS
$custom: #7838aa;
$custom-light: #a373c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7838aa",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 273.684,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48107,
    "c": 0.17696,
    "h": 306.7
  },
  "luminance": 0.09724
}

Semantic roles & 50–950 ramp

primary
#7838AA
secondary
#9BC17D
accent
#DA4E8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7838AA

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

Preview Lab → · Contrast checker → · Palette generator →

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