#7242CF#7242CF

#7242CF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.205 H 293.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7242CF
RGBrgb(114, 66, 207)
HSLhsl(260, 59%, 54%)
HSVhsv(260, 68%, 81%)
CMYKcmyk(44.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(41.18, 51.65, -65.63)
CIE-LCHlch(41.18, 83.51, 308.20°)
OKLaboklab(51.56% 0.0818 -0.1878)
OKLCHoklch(51.56% 0.205 293.5)
XYZxyz(20.1470, 11.9782, 60.2699)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242CF #9FCF42
analogous
#4258CF #7242CF #B942CF
triadic
#7242CF #CF7242 #42CF72
tetradic
#7242CF #CF4258 #9FCF42 #42CFB9
square
#7242CF #CF4258 #9FCF42 #42CFB9
split-complementary
#7242CF #CFB942 #58CF42
monochromatic
#3D1F78 #562BA9 #7242CF #9673DB #BBA4E8

Accessibility & contrast

On white

6.18
#7242CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7242CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242CF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242CF#FFFFFF#000000##FFFFFF
##7242CF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#576583
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7242cf;
/* rgb */ color: rgb(114, 66, 207);
/* oklch */ color: oklch(51.6% 0.205 293.5);
Tailwind
colors: {
  custom: {
    50: '#a27adf',
    500: '#7242cf',
    950: '#000000',
  },
}
SCSS
$custom: #7242cf;
$custom-light: #a27adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7242cf",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 260.426,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.20486,
    "h": 293.5
  },
  "luminance": 0.11979
}

Semantic roles & 50–950 ramp

primary
#7242CF
secondary
#C0D598
accent
#E345AD
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242CF

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

Preview Lab → · Contrast checker → · Palette generator →

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