#7242EC#7242EC

#7242EC is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.0% C 0.238 H 288.7°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#7242EC
RGBrgb(114, 66, 236)
HSLhsl(257, 82%, 59%)
HSVhsv(257, 72%, 93%)
CMYKcmyk(51.7%, 72%, 0%, 7.5%)
CIE-LABlab(43.55, 59.45, -78.31)
CIE-LCHlch(43.55, 98.33, 307.20°)
OKLaboklab(53.97% 0.0763 -0.2251)
OKLCHoklch(53.97% 0.238 288.7)
XYZxyz(24.0235, 13.5288, 80.6861)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242EC #BCEC42
analogous
#4267EC #7242EC #C742EC
triadic
#7242EC #EC7242 #42EC72
tetradic
#7242EC #EC4267 #BCEC42 #42ECC7
square
#7242EC #EC4267 #BCEC42 #42ECC7
split-complementary
#7242EC #ECC742 #67EC42
monochromatic
#3A10A3 #4E16DB #7242EC #9B7AF2 #C5B1F7

Accessibility & contrast

On white

5.67
#7242EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7242EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242EC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242EC#FFFFFF#000000##FFFFFF
##7242EC1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF1
Deuteranopia (green-blind)
#0063E9
Tritanopia (blue-blind)
#447093
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7242ec;
/* rgb */ color: rgb(114, 66, 236);
/* oklch */ color: oklch(54.0% 0.238 288.7);
Tailwind
colors: {
  custom: {
    50: '#a67bf3',
    500: '#7242ec',
    950: '#000000',
  },
}
SCSS
$custom: #7242ec;
$custom-light: #a67bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7242ec",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 236
  },
  "hsl": {
    "h": 256.941,
    "s": 81.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53974,
    "c": 0.23764,
    "h": 288.7
  },
  "luminance": 0.1353
}

Semantic roles & 50–950 ramp

primary
#7242EC
secondary
#D3E6A4
accent
#F830C0
background
#FAF7FF
surface
#F5EEFE
border
#CFC9D6
text
#110A17
muted
#807C85

Preview Lab

Preview with #7242EC

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

Preview Lab → · Contrast checker → · Palette generator →

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