#7126A2#7126A2

#7126A2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.189 H 307.9°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7126A2
RGBrgb(113, 38, 162)
HSLhsl(276, 62%, 39%)
HSVhsv(276, 77%, 64%)
CMYKcmyk(30.2%, 76.5%, 0%, 36.5%)
CIE-LABlab(32.93, 53.29, -52.49)
CIE-LCHlch(32.93, 74.80, 315.44°)
OKLaboklab(44.58% 0.1159 -0.1491)
OKLCHoklch(44.58% 0.189 307.9)
XYZxyz(14.0234, 7.5058, 34.8854)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7126A2 #57A226
analogous
#3326A2 #7126A2 #A22695
triadic
#7126A2 #A27126 #26A271
tetradic
#7126A2 #A23326 #57A226 #2695A2
square
#7126A2 #A23326 #57A226 #2695A2
split-complementary
#7126A2 #95A226 #26A233
monochromatic
#2C0F3F #4E1A70 #7126A2 #9335D0 #AD67DB

Accessibility & contrast

On white

8.40
#7126A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7126A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7126A2
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7126A2#FFFFFF#000000##FFFFFF
##7126A21.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#694463
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7126a2;
/* rgb */ color: rgb(113, 38, 162);
/* oklch */ color: oklch(44.6% 0.189 307.9);
Tailwind
colors: {
  custom: {
    50: '#9f69be',
    500: '#7126a2',
    950: '#000000',
  },
}
SCSS
$custom: #7126a2;
$custom-light: #9f69be;
$custom-dark: #000000;
JSON
{
  "hex": "#7126a2",
  "rgb": {
    "r": 113,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 276.29,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4458,
    "c": 0.18884,
    "h": 307.9
  },
  "luminance": 0.07506
}

Semantic roles & 50–950 ramp

primary
#7126A2
secondary
#88C163
accent
#E54383
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7126A2

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

Preview Lab → · Contrast checker → · Palette generator →

#7126A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva