#7242D5#7242D5

#7242D5 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.212 H 292.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7242D5
RGBrgb(114, 66, 213)
HSLhsl(260, 64%, 55%)
HSVhsv(260, 69%, 84%)
CMYKcmyk(46.5%, 69%, 0%, 16.5%)
CIE-LABlab(41.65, 53.26, -68.31)
CIE-LCHlch(41.65, 86.62, 307.94°)
OKLaboklab(52.04% 0.0808 -0.1957)
OKLCHoklch(52.04% 0.212 292.4)
XYZxyz(20.8945, 12.2772, 64.2067)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242D5 #A5D542
analogous
#425CD5 #7242D5 #BC42D5
triadic
#7242D5 #D57242 #42D572
tetradic
#7242D5 #D5425C #A5D542 #42D5BC
square
#7242D5 #D5425C #A5D542 #42D5BC
split-complementary
#7242D5 #D5BC42 #5CD542
monochromatic
#3D1C80 #5528B2 #7242D5 #9774E0 #BDA6EB

Accessibility & contrast

On white

6.08
#7242D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7242D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242D5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242D5#FFFFFF#000000##FFFFFF
##7242D51.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D9
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#546787
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7242d5;
/* rgb */ color: rgb(114, 66, 213);
/* oklch */ color: oklch(52.0% 0.212 292.4);
Tailwind
colors: {
  custom: {
    50: '#a37ae3',
    500: '#7242d5',
    950: '#000000',
  },
}
SCSS
$custom: #7242d5;
$custom-light: #a37ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7242d5",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 259.592,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52042,
    "c": 0.21174,
    "h": 292.4
  },
  "luminance": 0.12278
}

Semantic roles & 50–950 ramp

primary
#7242D5
secondary
#C4D89A
accent
#E741B1
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7242D5

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

Preview Lab → · Contrast checker → · Palette generator →

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