#7126B1#7126B1

#7126B1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.204 H 303.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7126B1
RGBrgb(113, 38, 177)
HSLhsl(272, 65%, 42%)
HSVhsv(272, 79%, 69%)
CMYKcmyk(36.2%, 78.5%, 0%, 30.6%)
CIE-LABlab(34.13, 56.72, -59.54)
CIE-LCHlch(34.13, 82.23, 313.61°)
OKLaboklab(45.8% 0.1123 -0.1698)
OKLCHoklch(45.8% 0.204 303.5)
XYZxyz(15.4371, 8.0713, 42.3311)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7126B1 #66B126
analogous
#2C26B1 #7126B1 #B126AC
triadic
#7126B1 #B17126 #26B171
tetradic
#7126B1 #B12C26 #66B126 #26ACB1
square
#7126B1 #B12C26 #66B126 #26ACB1
split-complementary
#7126B1 #ACB126 #26B12C
monochromatic
#31104C #511B7F #7126B1 #903FD6 #AD71E0

Accessibility & contrast

On white

8.03
#7126B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7126B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7126B1
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7126B1#FFFFFF#000000##FFFFFF
##7126B11.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#644B6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7126b1;
/* rgb */ color: rgb(113, 38, 177);
/* oklch */ color: oklch(45.8% 0.204 303.5);
Tailwind
colors: {
  custom: {
    50: '#a069c9',
    500: '#7126b1',
    950: '#000000',
  },
}
SCSS
$custom: #7126b1;
$custom-light: #a069c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7126b1",
  "rgb": {
    "r": 113,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 272.374,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45795,
    "c": 0.20361,
    "h": 303.5
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#7126B1
secondary
#96C76B
accent
#E8408D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7126B1

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

Preview Lab → · Contrast checker → · Palette generator →

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