#7938C9#7938C9

#7938C9 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.211 H 299.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7938C9
RGBrgb(121, 56, 201)
HSLhsl(267, 57%, 50%)
HSVhsv(267, 72%, 79%)
CMYKcmyk(39.8%, 72.1%, 0%, 21.2%)
CIE-LABlab(39.77, 56.23, -64.42)
CIE-LCHlch(39.77, 85.51, 311.11°)
OKLaboklab(50.58% 0.1023 -0.184)
OKLCHoklch(50.58% 0.211 299.1)
XYZxyz(19.8393, 11.1101, 56.3462)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C9 #88C938
analogous
#383FC9 #7938C9 #C238C9
triadic
#7938C9 #C97938 #38C979
tetradic
#7938C9 #C9383F #88C938 #38C9C2
square
#7938C9 #C9383F #88C938 #38C9C2
split-complementary
#7938C9 #C9C238 #3FC938
monochromatic
#3F1D6A #5C2A9A #7938C9 #9968D6 #BA98E3

Accessibility & contrast

On white

6.52
#7938C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7938C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938C9
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C9#FFFFFF#000000##FFFFFF
##7938C91.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECD
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#665C7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7938c9;
/* rgb */ color: rgb(121, 56, 201);
/* oklch */ color: oklch(50.6% 0.211 299.1);
Tailwind
colors: {
  custom: {
    50: '#a674da',
    500: '#7938c9',
    950: '#000000',
  },
}
SCSS
$custom: #7938c9;
$custom-light: #a674da;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c9",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 266.897,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50584,
    "c": 0.21053,
    "h": 299.1
  },
  "luminance": 0.1111
}

Semantic roles & 50–950 ramp

primary
#7938C9
secondary
#B2CF8E
accent
#E1479C
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7938C9

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

Preview Lab → · Contrast checker → · Palette generator →

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