#7242CD#7242CD

#7242CD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.203 H 293.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7242CD
RGBrgb(114, 66, 205)
HSLhsl(261, 58%, 53%)
HSVhsv(261, 68%, 80%)
CMYKcmyk(44.4%, 67.8%, 0%, 19.6%)
CIE-LABlab(41.03, 51.12, -64.72)
CIE-LCHlch(41.03, 82.47, 308.30°)
OKLaboklab(51.4% 0.0821 -0.1852)
OKLCHoklch(51.4% 0.203 293.9)
XYZxyz(19.9041, 11.8811, 58.9903)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242CD #9DCD42
analogous
#4258CD #7242CD #B742CD
triadic
#7242CD #CD7242 #42CD72
tetradic
#7242CD #CD4258 #9DCD42 #42CDB7
square
#7242CD #CD4258 #9DCD42 #42CDB7
split-complementary
#7242CD #CDB742 #58CD42
monochromatic
#3D1F76 #562CA6 #7242CD #9672DA #BAA3E7

Accessibility & contrast

On white

6.22
#7242CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7242CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242CD
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242CD#FFFFFF#000000##FFFFFF
##7242CD1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#586482
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7242cd;
/* rgb */ color: rgb(114, 66, 205);
/* oklch */ color: oklch(51.4% 0.203 293.9);
Tailwind
colors: {
  custom: {
    50: '#a27add',
    500: '#7242cd',
    950: '#000000',
  },
}
SCSS
$custom: #7242cd;
$custom-light: #a27add;
$custom-dark: #000000;
JSON
{
  "hex": "#7242cd",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 260.719,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51399,
    "c": 0.20255,
    "h": 293.9
  },
  "luminance": 0.11882
}

Semantic roles & 50–950 ramp

primary
#7242CD
secondary
#BFD397
accent
#E146AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242CD

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

Preview Lab → · Contrast checker → · Palette generator →

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