#7127B2#7127B2

#7127B2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.204 H 303.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7127B2
RGBrgb(113, 39, 178)
HSLhsl(272, 64%, 43%)
HSVhsv(272, 78%, 70%)
CMYKcmyk(36.5%, 78.1%, 0%, 30.2%)
CIE-LABlab(34.35, 56.57, -59.78)
CIE-LCHlch(34.35, 82.30, 313.42°)
OKLaboklab(45.97% 0.1113 -0.1705)
OKLCHoklch(45.97% 0.204 303.1)
XYZxyz(15.5696, 8.1761, 42.8687)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7127B2 #68B227
analogous
#2B27B2 #7127B2 #B227AE
triadic
#7127B2 #B27127 #27B271
tetradic
#7127B2 #B22B27 #68B227 #27AEB2
square
#7127B2 #B22B27 #68B227 #27AEB2
split-complementary
#7127B2 #AEB227 #27B22B
monochromatic
#31114E #511C80 #7127B2 #9041D5 #AD73E0

Accessibility & contrast

On white

7.97
#7127B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7127B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7127B2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7127B2#FFFFFF#000000##FFFFFF
##7127B21.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7127b2;
/* rgb */ color: rgb(113, 39, 178);
/* oklch */ color: oklch(46.0% 0.204 303.1);
Tailwind
colors: {
  custom: {
    50: '#a06aca',
    500: '#7127b2',
    950: '#000000',
  },
}
SCSS
$custom: #7127b2;
$custom-light: #a06aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7127b2",
  "rgb": {
    "r": 113,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 271.942,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.20362,
    "h": 303.1
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#7127B2
secondary
#97C86D
accent
#E7418F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7127B2

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

Preview Lab → · Contrast checker → · Palette generator →

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