#7242C4#7242C4

#7242C4 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.192 H 295.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7242C4
RGBrgb(114, 66, 196)
HSLhsl(262, 52%, 51%)
HSVhsv(262, 66%, 77%)
CMYKcmyk(41.8%, 66.3%, 0%, 23.1%)
CIE-LABlab(40.34, 48.72, -60.61)
CIE-LCHlch(40.34, 77.76, 308.79°)
OKLaboklab(50.69% 0.0833 -0.1731)
OKLCHoklch(50.69% 0.192 295.7)
XYZxyz(18.8488, 11.4589, 53.4326)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242C4 #94C442
analogous
#4253C4 #7242C4 #B342C4
triadic
#7242C4 #C47242 #42C472
tetradic
#7242C4 #C44253 #94C442 #42C4B3
square
#7242C4 #C44253 #94C442 #42C4B3
split-complementary
#7242C4 #C4B342 #53C442
monochromatic
#3C216A #573099 #7242C4 #9571D3 #B89FE1

Accessibility & contrast

On white

6.38
#7242C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7242C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242C4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242C4#FFFFFF#000000##FFFFFF
##7242C41.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#5D617D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7242c4;
/* rgb */ color: rgb(114, 66, 196);
/* oklch */ color: oklch(50.7% 0.192 295.7);
Tailwind
colors: {
  custom: {
    50: '#a179d7',
    500: '#7242c4',
    950: '#000000',
  },
}
SCSS
$custom: #7242c4;
$custom-light: #a179d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7242c4",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 262.154,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50694,
    "c": 0.1921,
    "h": 295.7
  },
  "luminance": 0.11459
}

Semantic roles & 50–950 ramp

primary
#7242C4
secondary
#B8CE94
accent
#DC4CA7
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7242C4

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

Preview Lab → · Contrast checker → · Palette generator →

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