#7242CC#7242CC

#7242CC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.201 H 294.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7242CC
RGBrgb(114, 66, 204)
HSLhsl(261, 58%, 53%)
HSVhsv(261, 68%, 80%)
CMYKcmyk(44.1%, 67.6%, 0%, 20%)
CIE-LABlab(40.95, 50.85, -64.27)
CIE-LCHlch(40.95, 81.95, 308.35°)
OKLaboklab(51.32% 0.0823 -0.1838)
OKLCHoklch(51.32% 0.201 294.1)
XYZxyz(19.7838, 11.8329, 58.3567)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242CC #9CCC42
analogous
#4257CC #7242CC #B742CC
triadic
#7242CC #CC7242 #42CC72
tetradic
#7242CC #CC4257 #9CCC42 #42CCB7
square
#7242CC #CC4257 #9CCC42 #42CCB7
split-complementary
#7242CC #CCB742 #57CC42
monochromatic
#3D1F74 #562CA4 #7242CC #9672D9 #BAA2E6

Accessibility & contrast

On white

6.24
#7242CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7242CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242CC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242CC#FFFFFF#000000##FFFFFF
##7242CC1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#596482
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7242cc;
/* rgb */ color: rgb(114, 66, 204);
/* oklch */ color: oklch(51.3% 0.201 294.1);
Tailwind
colors: {
  custom: {
    50: '#a27adc',
    500: '#7242cc',
    950: '#000000',
  },
}
SCSS
$custom: #7242cc;
$custom-light: #a27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7242cc",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 260.87,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.2014,
    "h": 294.1
  },
  "luminance": 0.11833
}

Semantic roles & 50–950 ramp

primary
#7242CC
secondary
#BED397
accent
#E147AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242CC

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

Preview Lab → · Contrast checker → · Palette generator →

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