#7126BD#7126BD

#7126BD is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.215 H 300.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7126BD
RGBrgb(113, 38, 189)
HSLhsl(270, 67%, 45%)
HSVhsv(270, 80%, 74%)
CMYKcmyk(40.2%, 79.9%, 0%, 25.9%)
CIE-LABlab(35.14, 59.52, -64.99)
CIE-LCHlch(35.14, 88.13, 312.48°)
OKLaboklab(46.82% 0.109 -0.1858)
OKLCHoklch(46.82% 0.215 300.4)
XYZxyz(16.6862, 8.5709, 48.9095)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7126BD #72BD26
analogous
#2627BD #7126BD #BD26BD
triadic
#7126BD #BD7126 #26BD71
tetradic
#7126BD #BD2627 #72BD26 #26BDBD
square
#7126BD #BD2627 #72BD26 #26BDBD
split-complementary
#7126BD #BDBD26 #27BD26
monochromatic
#341257 #531C8A #7126BD #9046DA #AE79E4

Accessibility & contrast

On white

7.74
#7126BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7126BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7126BD
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7126BD#FFFFFF#000000##FFFFFF
##7126BD1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#5F5072
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7126bd;
/* rgb */ color: rgb(113, 38, 189);
/* oklch */ color: oklch(46.8% 0.215 300.4);
Tailwind
colors: {
  custom: {
    50: '#a16ad2',
    500: '#7126bd',
    950: '#000000',
  },
}
SCSS
$custom: #7126bd;
$custom-light: #a16ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7126bd",
  "rgb": {
    "r": 113,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 269.801,
    "s": 66.52,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46815,
    "c": 0.21542,
    "h": 300.4
  },
  "luminance": 0.08571
}

Semantic roles & 50–950 ramp

primary
#7126BD
secondary
#A0CC73
accent
#E93E94
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7126BD

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

Preview Lab → · Contrast checker → · Palette generator →

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