#7242D2#7242D2

#7242D2 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.208 H 293.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7242D2
RGBrgb(114, 66, 210)
HSLhsl(260, 62%, 54%)
HSVhsv(260, 69%, 82%)
CMYKcmyk(45.7%, 68.6%, 0%, 17.6%)
CIE-LABlab(41.42, 52.45, -66.97)
CIE-LCHlch(41.42, 85.07, 308.07°)
OKLaboklab(51.8% 0.0813 -0.1918)
OKLCHoklch(51.8% 0.208 293)
XYZxyz(20.5173, 12.1263, 62.2199)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242D2 #A2D242
analogous
#425AD2 #7242D2 #BA42D2
triadic
#7242D2 #D27242 #42D272
tetradic
#7242D2 #D2425A #A2D242 #42D2BA
square
#7242D2 #D2425A #A2D242 #42D2BA
split-complementary
#7242D2 #D2BA42 #5AD242
monochromatic
#3D1E7C #5529AD #7242D2 #9773DE #BCA5EA

Accessibility & contrast

On white

6.13
#7242D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7242D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242D2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242D2#FFFFFF#000000##FFFFFF
##7242D21.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#556685
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7242d2;
/* rgb */ color: rgb(114, 66, 210);
/* oklch */ color: oklch(51.8% 0.208 293.0);
Tailwind
colors: {
  custom: {
    50: '#a27ae1',
    500: '#7242d2',
    950: '#000000',
  },
}
SCSS
$custom: #7242d2;
$custom-light: #a27ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7242d2",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 260,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51799,
    "c": 0.2083,
    "h": 293
  },
  "luminance": 0.12127
}

Semantic roles & 50–950 ramp

primary
#7242D2
secondary
#C2D799
accent
#E543AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242D2

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

Preview Lab → · Contrast checker → · Palette generator →

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