#7938AF#7938AF

#7938AF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.6% C 0.183 H 305.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7938AF
RGBrgb(121, 56, 175)
HSLhsl(273, 52%, 45%)
HSVhsv(273, 68%, 69%)
CMYKcmyk(30.9%, 68%, 0%, 31.4%)
CIE-LABlab(37.82, 49.92, -52.30)
CIE-LCHlch(37.82, 72.30, 313.66°)
OKLaboklab(48.59% 0.1065 -0.1484)
OKLCHoklch(48.59% 0.183 305.7)
XYZxyz(17.0355, 9.9886, 41.5797)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938AF #6EAF38
analogous
#3D38AF #7938AF #AF38A9
triadic
#7938AF #AF7938 #38AF79
tetradic
#7938AF #AF3D38 #6EAF38 #38A9AF
square
#7938AF #AF3D38 #6EAF38 #38A9AF
split-complementary
#7938AF #A9AF38 #38AF3D
monochromatic
#391A52 #592981 #7938AF #975ACA #B488D9

Accessibility & contrast

On white

7.01
#7938AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7938AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938AF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938AF#FFFFFF#000000##FFFFFF
##7938AF1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#1359AC
Tritanopia (blue-blind)
#6F526F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7938af;
/* rgb */ color: rgb(121, 56, 175);
/* oklch */ color: oklch(48.6% 0.183 305.7);
Tailwind
colors: {
  custom: {
    50: '#a473c8',
    500: '#7938af',
    950: '#000000',
  },
}
SCSS
$custom: #7938af;
$custom-light: #a473c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7938af",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 272.773,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4859,
    "c": 0.18263,
    "h": 305.7
  },
  "luminance": 0.09988
}

Semantic roles & 50–950 ramp

primary
#7938AF
secondary
#9EC380
accent
#DB4D8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7938AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva