#7126AB#7126AB

#7126AB is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.3% C 0.198 H 305.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7126AB
RGBrgb(113, 38, 171)
HSLhsl(274, 64%, 41%)
HSVhsv(274, 78%, 67%)
CMYKcmyk(33.9%, 77.8%, 0%, 32.9%)
CIE-LABlab(33.64, 55.34, -56.75)
CIE-LCHlch(33.64, 79.26, 314.28°)
OKLaboklab(45.3% 0.1139 -0.1616)
OKLCHoklch(45.3% 0.198 305.2)
XYZxyz(14.8522, 7.8373, 39.2505)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7126AB #60AB26
analogous
#2F26AB #7126AB #AB26A2
triadic
#7126AB #AB7126 #26AB71
tetradic
#7126AB #AB2F26 #60AB26 #26A2AB
square
#7126AB #AB2F26 #60AB26 #26A2AB
split-complementary
#7126AB #A2AB26 #26AB2F
monochromatic
#2F1047 #501B79 #7126AB #913BD3 #AD6DDF

Accessibility & contrast

On white

8.18
#7126AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7126AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7126AB
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7126AB#FFFFFF#000000##FFFFFF
##7126AB1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#664868
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7126ab;
/* rgb */ color: rgb(113, 38, 171);
/* oklch */ color: oklch(45.3% 0.198 305.2);
Tailwind
colors: {
  custom: {
    50: '#9f69c5',
    500: '#7126ab',
    950: '#000000',
  },
}
SCSS
$custom: #7126ab;
$custom-light: #9f69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7126ab",
  "rgb": {
    "r": 113,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 273.835,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45301,
    "c": 0.1977,
    "h": 305.2
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

primary
#7126AB
secondary
#90C568
accent
#E74189
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7126AB

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

Preview Lab → · Contrast checker → · Palette generator →

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