#7242AE#7242AE

#7242AE is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.166 H 300.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7242AE
RGBrgb(114, 66, 174)
HSLhsl(267, 45%, 47%)
HSVhsv(267, 62%, 68%)
CMYKcmyk(34.5%, 62.1%, 0%, 31.8%)
CIE-LABlab(38.78, 42.96, -50.21)
CIE-LCHlch(38.78, 66.08, 310.55°)
OKLaboklab(49.07% 0.0853 -0.1425)
OKLCHoklch(49.07% 0.166 300.9)
XYZxyz(16.5258, 10.5297, 41.1980)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242AE #7EAE42
analogous
#4248AE #7242AE #A842AE
triadic
#7242AE #AE7242 #42AE72
tetradic
#7242AE #AE4248 #7EAE42 #42AEA8
square
#7242AE #AE4248 #7EAE42 #42AEA8
split-complementary
#7242AE #AEA842 #48AE42
monochromatic
#382055 #553182 #7242AE #9168C6 #B294D6

Accessibility & contrast

On white

6.76
#7242AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7242AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242AE
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242AE#FFFFFF#000000##FFFFFF
##7242AE1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#1D5BAC
Tritanopia (blue-blind)
#655972
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7242ae;
/* rgb */ color: rgb(114, 66, 174);
/* oklch */ color: oklch(49.1% 0.166 300.9);
Tailwind
colors: {
  custom: {
    50: '#9f79c7',
    500: '#7242ae',
    950: '#000000',
  },
}
SCSS
$custom: #7242ae;
$custom-light: #9f79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7242ae",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 266.667,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49067,
    "c": 0.1661,
    "h": 300.9
  },
  "luminance": 0.1053
}

Semantic roles & 50–950 ramp

primary
#7242AE
secondary
#A9C28A
accent
#D5539B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7242AE

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

Preview Lab → · Contrast checker → · Palette generator →

#7242AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva