#7242D4#7242D4

#7242D4 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.211 H 292.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7242D4
RGBrgb(114, 66, 212)
HSLhsl(260, 63%, 55%)
HSVhsv(260, 69%, 83%)
CMYKcmyk(46.2%, 68.9%, 0%, 16.9%)
CIE-LABlab(41.57, 52.99, -67.87)
CIE-LCHlch(41.57, 86.10, 307.98°)
OKLaboklab(51.96% 0.081 -0.1944)
OKLCHoklch(51.96% 0.211 292.6)
XYZxyz(20.7680, 12.2266, 63.5403)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242D4 #A4D442
analogous
#425BD4 #7242D4 #BB42D4
triadic
#7242D4 #D47242 #42D472
tetradic
#7242D4 #D4425B #A4D442 #42D4BB
square
#7242D4 #D4425B #A4D442 #42D4BB
split-complementary
#7242D4 #D4BB42 #5BD442
monochromatic
#3D1D7F #5528B1 #7242D4 #9774DF #BCA6EB

Accessibility & contrast

On white

6.10
#7242D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7242D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242D4
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242D4#FFFFFF#000000##FFFFFF
##7242D41.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#005FD1
Tritanopia (blue-blind)
#546786
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7242d4;
/* rgb */ color: rgb(114, 66, 212);
/* oklch */ color: oklch(52.0% 0.211 292.6);
Tailwind
colors: {
  custom: {
    50: '#a37ae2',
    500: '#7242d4',
    950: '#000000',
  },
}
SCSS
$custom: #7242d4;
$custom-light: #a37ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7242d4",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 259.726,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51961,
    "c": 0.2106,
    "h": 292.6
  },
  "luminance": 0.12227
}

Semantic roles & 50–950 ramp

primary
#7242D4
secondary
#C3D89A
accent
#E642B0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7242D4

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

Preview Lab → · Contrast checker → · Palette generator →

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