#7126B2#7126B2

#7126B2 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.205 H 303.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7126B2
RGBrgb(113, 38, 178)
HSLhsl(272, 65%, 42%)
HSVhsv(272, 79%, 70%)
CMYKcmyk(36.5%, 78.7%, 0%, 30.2%)
CIE-LABlab(34.21, 56.95, -60.00)
CIE-LCHlch(34.21, 82.72, 313.51°)
OKLaboklab(45.88% 0.1121 -0.1712)
OKLCHoklch(45.88% 0.205 303.2)
XYZxyz(15.5371, 8.1113, 42.8579)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7126B2 #67B226
analogous
#2B26B2 #7126B2 #B226AD
triadic
#7126B2 #B27126 #26B271
tetradic
#7126B2 #B22B26 #67B226 #26ADB2
square
#7126B2 #B22B26 #67B226 #26ADB2
split-complementary
#7126B2 #ADB226 #26B22B
monochromatic
#31104D #511B80 #7126B2 #903FD6 #AD72E1

Accessibility & contrast

On white

8.01
#7126B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7126B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7126B2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7126B2#FFFFFF#000000##FFFFFF
##7126B21.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#644B6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7126b2;
/* rgb */ color: rgb(113, 38, 178);
/* oklch */ color: oklch(45.9% 0.205 303.2);
Tailwind
colors: {
  custom: {
    50: '#a069ca',
    500: '#7126b2',
    950: '#000000',
  },
}
SCSS
$custom: #7126b2;
$custom-light: #a069ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7126b2",
  "rgb": {
    "r": 113,
    "g": 38,
    "b": 178
  },
  "hsl": {
    "h": 272.143,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45879,
    "c": 0.20459,
    "h": 303.2
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#7126B2
secondary
#97C86C
accent
#E8408E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7126B2

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

Preview Lab → · Contrast checker → · Palette generator →

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