#7838CA#7838CA

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

Color values

HEX#7838CA
RGBrgb(120, 56, 202)
HSLhsl(266, 58%, 51%)
HSVhsv(266, 72%, 79%)
CMYKcmyk(40.6%, 72.3%, 0%, 20.8%)
CIE-LABlab(39.72, 56.30, -65.08)
CIE-LCHlch(39.72, 86.05, 310.86°)
OKLaboklab(50.55% 0.1007 -0.186)
OKLCHoklch(50.55% 0.211 298.4)
XYZxyz(19.8178, 11.0854, 56.9612)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838CA #8ACA38
analogous
#3841CA #7838CA #C138CA
triadic
#7838CA #CA7838 #38CA78
tetradic
#7838CA #CA3841 #8ACA38 #38CAC1
square
#7838CA #CA3841 #8ACA38 #38CAC1
split-complementary
#7838CA #CAC138 #41CA38
monochromatic
#3F1D6B #5B299B #7838CA #9968D7 #BA99E4

Accessibility & contrast

On white

6.53
#7838CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7838CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7838CA#FFFFFF#000000##FFFFFF
##7838CA1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#645D7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7838ca;
/* rgb */ color: rgb(120, 56, 202);
/* oklch */ color: oklch(50.6% 0.211 298.4);
Tailwind
colors: {
  custom: {
    50: '#a674db',
    500: '#7838ca',
    950: '#000000',
  },
}
SCSS
$custom: #7838ca;
$custom-light: #a674db;
$custom-dark: #000000;
JSON
{
  "hex": "#7838ca",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 266.301,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.21147,
    "h": 298.4
  },
  "luminance": 0.11086
}

Semantic roles & 50–950 ramp

primary
#7838CA
secondary
#B3CF8E
accent
#E1479D
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7838CA

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

Preview Lab → · Contrast checker → · Palette generator →

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