#7838B2#7838B2

#7838B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.186 H 304.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7838B2
RGBrgb(120, 56, 178)
HSLhsl(271, 52%, 46%)
HSVhsv(271, 69%, 70%)
CMYKcmyk(32.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(37.91, 50.42, -53.95)
CIE-LCHlch(37.91, 73.85, 313.06°)
OKLaboklab(48.69% 0.1047 -0.1533)
OKLCHoklch(48.69% 0.186 304.3)
XYZxyz(17.1940, 10.0358, 43.1421)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838B2 #72B238
analogous
#3B38B2 #7838B2 #B238AF
triadic
#7838B2 #B27838 #38B278
tetradic
#7838B2 #B23B38 #72B238 #38AFB2
square
#7838B2 #B23B38 #72B238 #38AFB2
split-complementary
#7838B2 #AFB238 #38B23B
monochromatic
#391B55 #592983 #7838B2 #965CCC #B48ADA

Accessibility & contrast

On white

6.98
#7838B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7838B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7838B2#FFFFFF#000000##FFFFFF
##7838B21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0559AF
Tritanopia (blue-blind)
#6D5470
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7838b2;
/* rgb */ color: rgb(120, 56, 178);
/* oklch */ color: oklch(48.7% 0.186 304.3);
Tailwind
colors: {
  custom: {
    50: '#a473ca',
    500: '#7838b2',
    950: '#000000',
  },
}
SCSS
$custom: #7838b2;
$custom-light: #a473ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7838b2",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 271.475,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4869,
    "c": 0.18564,
    "h": 304.3
  },
  "luminance": 0.10036
}

Semantic roles & 50–950 ramp

primary
#7838B2
secondary
#A1C581
accent
#DC4C90
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7838B2

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

Preview Lab → · Contrast checker → · Palette generator →

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