#7126C7#7126C7

#7126C7 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.7% C 0.225 H 298.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7126C7
RGBrgb(113, 38, 199)
HSLhsl(268, 68%, 46%)
HSVhsv(268, 81%, 78%)
CMYKcmyk(43.2%, 80.9%, 0%, 22%)
CIE-LABlab(36.02, 61.88, -69.42)
CIE-LCHlch(36.02, 92.99, 311.71°)
OKLaboklab(47.69% 0.1059 -0.1988)
OKLCHoklch(47.69% 0.225 298)
XYZxyz(17.8093, 9.0201, 54.8245)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7126C7 #7CC726
analogous
#262CC7 #7126C7 #C226C7
triadic
#7126C7 #C77126 #26C771
tetradic
#7126C7 #C7262C #7CC726 #26C7C2
square
#7126C7 #C7262C #7CC726 #26C7C2
split-complementary
#7126C7 #C7C226 #2CC726
monochromatic
#371260 #541C94 #7126C7 #904DDD #B081E7

Accessibility & contrast

On white

7.49
#7126C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7126C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7126C7
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7126C7#FFFFFF#000000##FFFFFF
##7126C71.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#0053C4
Tritanopia (blue-blind)
#5B5478
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7126c7;
/* rgb */ color: rgb(113, 38, 199);
/* oklch */ color: oklch(47.7% 0.225 298.0);
Tailwind
colors: {
  custom: {
    50: '#a26bd9',
    500: '#7126c7',
    950: '#000000',
  },
}
SCSS
$custom: #7126c7;
$custom-light: #a26bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7126c7",
  "rgb": {
    "r": 113,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 267.95,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47693,
    "c": 0.22525,
    "h": 298
  },
  "luminance": 0.0902
}

Semantic roles & 50–950 ramp

primary
#7126C7
secondary
#A7CF79
accent
#EB3D9A
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7126C7

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

Preview Lab → · Contrast checker → · Palette generator →

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