#7A2ECF#7A2ECF

#7A2ECF is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.227 H 299.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7A2ECF
RGBrgb(122, 46, 207)
HSLhsl(268, 64%, 50%)
HSVhsv(268, 78%, 81%)
CMYKcmyk(41.1%, 77.8%, 0%, 18.8%)
CIE-LABlab(38.89, 62.09, -69.32)
CIE-LCHlch(38.89, 93.06, 311.85°)
OKLaboklab(50.15% 0.1108 -0.1983)
OKLCHoklch(50.15% 0.227 299.2)
XYZxyz(20.2627, 10.5963, 59.9971)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2ECF #83CF2E
analogous
#2E33CF #7A2ECF #CB2ECF
triadic
#7A2ECF #CF7A2E #2ECF7A
tetradic
#7A2ECF #CF2E33 #83CF2E #2ECFCB
square
#7A2ECF #CF2E33 #83CF2E #2ECFCB
split-complementary
#7A2ECF #CFCB2E #33CF2E
monochromatic
#3F186B #5C239D #7A2ECF #9A5FDB #B991E7

Accessibility & contrast

On white

6.73
#7A2ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7A2ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2ECF
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2ECF#FFFFFF#000000##FFFFFF
##7A2ECF1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#655A7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a2ecf;
/* rgb */ color: rgb(122, 46, 207);
/* oklch */ color: oklch(50.1% 0.227 299.2);
Tailwind
colors: {
  custom: {
    50: '#a870df',
    500: '#7a2ecf',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ecf;
$custom-light: #a870df;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ecf",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 268.323,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50149,
    "c": 0.22717,
    "h": 299.2
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#7A2ECF
secondary
#AED188
accent
#E74199
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7A2ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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