#7A1FB3#7A1FB3

#7A1FB3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.5% C 0.214 H 307.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7A1FB3
RGBrgb(122, 31, 179)
HSLhsl(277, 70%, 41%)
HSVhsv(277, 83%, 70%)
CMYKcmyk(31.8%, 82.7%, 0%, 29.8%)
CIE-LABlab(34.75, 61.04, -59.67)
CIE-LCHlch(34.75, 85.36, 315.65°)
OKLaboklab(46.54% 0.1299 -0.1698)
OKLCHoklch(46.54% 0.214 307.4)
XYZxyz(16.6510, 8.3724, 43.3779)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1FB3 #58B31F
analogous
#301FB3 #7A1FB3 #B31FA2
triadic
#7A1FB3 #B37A1F #1FB37A
tetradic
#7A1FB3 #B3301F #58B31F #1FA2B3
square
#7A1FB3 #B3301F #58B31F #1FA2B3
split-complementary
#7A1FB3 #A2B31F #1FB330
monochromatic
#330D4B #56167F #7A1FB3 #9B33DC #B568E5

Accessibility & contrast

On white

7.85
#7A1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7A1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1FB3
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1FB3#FFFFFF#000000##FFFFFF
##7A1FB31.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#70486B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a1fb3;
/* rgb */ color: rgb(122, 31, 179);
/* oklch */ color: oklch(46.5% 0.214 307.4);
Tailwind
colors: {
  custom: {
    50: '#a668cb',
    500: '#7a1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7a1fb3;
$custom-light: #a668cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1fb3",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 276.892,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46544,
    "c": 0.21378,
    "h": 307.4
  },
  "luminance": 0.08372
}

Semantic roles & 50–950 ramp

primary
#7A1FB3
secondary
#8BCA64
accent
#ED3B7F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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