#7242A2#7242A2

#7242A2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.2% C 0.152 H 304.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7242A2
RGBrgb(114, 66, 162)
HSLhsl(270, 42%, 45%)
HSVhsv(270, 59%, 64%)
CMYKcmyk(29.6%, 59.3%, 0%, 36.5%)
CIE-LABlab(37.99, 39.91, -44.32)
CIE-LCHlch(37.99, 59.64, 312.00°)
OKLaboklab(48.24% 0.0856 -0.1252)
OKLCHoklch(48.24% 0.152 304.4)
XYZxyz(15.4078, 10.0825, 35.3098)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242A2 #72A242
analogous
#4242A2 #7242A2 #A242A2
triadic
#7242A2 #A27242 #42A272
tetradic
#7242A2 #A24242 #72A242 #42A2A2
square
#7242A2 #A24242 #72A242 #42A2A2
split-complementary
#7242A2 #A2A242 #42A242
monochromatic
#351F4B #533077 #7242A2 #9162BF #AF8ED1

Accessibility & contrast

On white

6.96
#7242A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7242A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242A2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242A2#FFFFFF#000000##FFFFFF
##7242A21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#2D59A0
Tritanopia (blue-blind)
#69556B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7242a2;
/* rgb */ color: rgb(114, 66, 162);
/* oklch */ color: oklch(48.2% 0.152 304.4);
Tailwind
colors: {
  custom: {
    50: '#9e78be',
    500: '#7242a2',
    950: '#000000',
  },
}
SCSS
$custom: #7242a2;
$custom-light: #9e78be;
$custom-dark: #000000;
JSON
{
  "hex": "#7242a2",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 270,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48242,
    "c": 0.15169,
    "h": 304.4
  },
  "luminance": 0.10082
}

Semantic roles & 50–950 ramp

primary
#7242A2
secondary
#A0BC84
accent
#D25694
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0F0912
muted
#7E7B81

Preview Lab

Preview with #7242A2

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

Preview Lab → · Contrast checker → · Palette generator →

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