#7242CE#7242CE

#7242CE is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.204 H 293.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7242CE
RGBrgb(114, 66, 206)
HSLhsl(261, 59%, 53%)
HSVhsv(261, 68%, 81%)
CMYKcmyk(44.7%, 68%, 0%, 19.2%)
CIE-LABlab(41.10, 51.38, -65.17)
CIE-LCHlch(41.10, 82.99, 308.25°)
OKLaboklab(51.48% 0.0819 -0.1865)
OKLCHoklch(51.48% 0.204 293.7)
XYZxyz(20.0252, 11.9295, 59.6281)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242CE #9ECE42
analogous
#4258CE #7242CE #B842CE
triadic
#7242CE #CE7242 #42CE72
tetradic
#7242CE #CE4258 #9ECE42 #42CEB8
square
#7242CE #CE4258 #9ECE42 #42CEB8
split-complementary
#7242CE #CEB842 #58CE42
monochromatic
#3D1F77 #562BA7 #7242CE #9673DB #BBA3E7

Accessibility & contrast

On white

6.20
#7242CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7242CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242CE
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242CE#FFFFFF#000000##FFFFFF
##7242CE1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#586483
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7242ce;
/* rgb */ color: rgb(114, 66, 206);
/* oklch */ color: oklch(51.5% 0.204 293.7);
Tailwind
colors: {
  custom: {
    50: '#a27ade',
    500: '#7242ce',
    950: '#000000',
  },
}
SCSS
$custom: #7242ce;
$custom-light: #a27ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7242ce",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 260.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51479,
    "c": 0.20371,
    "h": 293.7
  },
  "luminance": 0.1193
}

Semantic roles & 50–950 ramp

primary
#7242CE
secondary
#BFD498
accent
#E246AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242CE

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

Preview Lab → · Contrast checker → · Palette generator →

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