#7242C8#7242C8

#7242C8 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.197 H 294.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7242C8
RGBrgb(114, 66, 200)
HSLhsl(261, 55%, 52%)
HSVhsv(261, 67%, 78%)
CMYKcmyk(43%, 67%, 0%, 21.6%)
CIE-LABlab(40.64, 49.78, -62.45)
CIE-LCHlch(40.64, 79.86, 308.56°)
OKLaboklab(51.01% 0.0828 -0.1785)
OKLCHoklch(51.01% 0.197 294.9)
XYZxyz(19.3102, 11.6435, 55.8624)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242C8 #98C842
analogous
#4255C8 #7242C8 #B542C8
triadic
#7242C8 #C87242 #42C872
tetradic
#7242C8 #C84255 #98C842 #42C8B5
square
#7242C8 #C84255 #98C842 #42C8B5
split-complementary
#7242C8 #C8B542 #55C842
monochromatic
#3D206F #562E9F #7242C8 #9571D6 #B9A1E4

Accessibility & contrast

On white

6.31
#7242C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7242C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242C8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242C8#FFFFFF#000000##FFFFFF
##7242C81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#5B627F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7242c8;
/* rgb */ color: rgb(114, 66, 200);
/* oklch */ color: oklch(51.0% 0.197 294.9);
Tailwind
colors: {
  custom: {
    50: '#a17ada',
    500: '#7242c8',
    950: '#000000',
  },
}
SCSS
$custom: #7242c8;
$custom-light: #a17ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7242c8",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 261.493,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51005,
    "c": 0.19676,
    "h": 294.9
  },
  "luminance": 0.11644
}

Semantic roles & 50–950 ramp

primary
#7242C8
secondary
#BBD096
accent
#DE4AA9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242C8

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

Preview Lab → · Contrast checker → · Palette generator →

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