#7A6CED#7A6CED

#7A6CED is a mid, vivid blue. Relative luminance 0.210; OKLCH L 61.0% C 0.187 H 284.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7A6CED
RGBrgb(122, 108, 237)
HSLhsl(247, 78%, 68%)
HSVhsv(247, 54%, 93%)
CMYKcmyk(48.5%, 54.4%, 0%, 7.1%)
CIE-LABlab(52.92, 38.24, -63.60)
CIE-LCHlch(52.92, 74.22, 301.02°)
OKLaboklab(60.98% 0.0462 -0.1816)
OKLCHoklch(60.98% 0.187 284.3)
XYZxyz(28.6701, 20.9757, 82.6424)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A6CED #DFED6C
analogous
#6C9EED #7A6CED #BB6CED
triadic
#7A6CED #ED7A6C #6CED7A
tetradic
#7A6CED #ED6C9E #DFED6C #6CEDBB
square
#7A6CED #ED6C9E #DFED6C #6CEDBB
split-complementary
#7A6CED #EDBB6C #9EED6C
monochromatic
#2B18C6 #4935E6 #7A6CED #ABA3F4 #DDD9FA

Accessibility & contrast

On white

4.04
#7A6CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7A6CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A6CED
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A6CED#FFFFFF#000000##000000
##7A6CED1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F82F1
Deuteranopia (green-blind)
#157AEA
Tritanopia (blue-blind)
#5189A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a6ced;
/* rgb */ color: rgb(122, 108, 237);
/* oklch */ color: oklch(61.0% 0.187 284.3);
Tailwind
colors: {
  custom: {
    50: '#a896f4',
    500: '#7a6ced',
    950: '#000000',
  },
}
SCSS
$custom: #7a6ced;
$custom-light: #a896f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a6ced",
  "rgb": {
    "r": 122,
    "g": 108,
    "b": 237
  },
  "hsl": {
    "h": 246.512,
    "s": 78.182,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60975,
    "c": 0.18738,
    "h": 284.3
  },
  "luminance": 0.20977
}

Semantic roles & 50–950 ramp

primary
#7A6CED
secondary
#EAEEC6
accent
#DA0BC4
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7A6CED

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

Preview Lab → · Contrast checker → · Palette generator →

#7A6CED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva