#7229AB#7229AB

#7229AB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.195 H 305.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7229AB
RGBrgb(114, 41, 171)
HSLhsl(274, 61%, 42%)
HSVhsv(274, 76%, 67%)
CMYKcmyk(33.3%, 76%, 0%, 32.9%)
CIE-LABlab(34.20, 54.32, -55.84)
CIE-LCHlch(34.20, 77.90, 314.21°)
OKLaboklab(45.72% 0.1126 -0.1589)
OKLCHoklch(45.72% 0.195 305.3)
XYZxyz(15.0814, 8.1037, 39.2898)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7229AB #62AB29
analogous
#3129AB #7229AB #AB29A3
triadic
#7229AB #AB7229 #29AB72
tetradic
#7229AB #AB3129 #62AB29 #29A3AB
square
#7229AB #AB3129 #62AB29 #29A3AB
split-complementary
#7229AB #A3AB29 #29AB31
monochromatic
#301148 #511D7A #7229AB #9240D1 #AE71DD

Accessibility & contrast

On white

8.01
#7229AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7229AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7229AB
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7229AB#FFFFFF#000000##FFFFFF
##7229AB1.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)
#004EAF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#674A69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7229ab;
/* rgb */ color: rgb(114, 41, 171);
/* oklch */ color: oklch(45.7% 0.195 305.3);
Tailwind
colors: {
  custom: {
    50: '#a06bc5',
    500: '#7229ab',
    950: '#000000',
  },
}
SCSS
$custom: #7229ab;
$custom-light: #a06bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7229ab",
  "rgb": {
    "r": 114,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 273.692,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45721,
    "c": 0.19479,
    "h": 305.3
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#7229AB
secondary
#92C46C
accent
#E4438A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7229AB

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

Preview Lab → · Contrast checker → · Palette generator →

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