#7242E1#7242E1

#7242E1 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.225 H 290.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7242E1
RGBrgb(114, 66, 225)
HSLhsl(258, 73%, 57%)
HSVhsv(258, 71%, 88%)
CMYKcmyk(49.3%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.63, 56.49, -73.59)
CIE-LCHlch(42.63, 92.77, 307.51°)
OKLaboklab(53.04% 0.0786 -0.2112)
OKLCHoklch(53.04% 0.225 290.4)
XYZxyz(22.4744, 12.9092, 72.5271)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242E1 #B1E142
analogous
#4262E1 #7242E1 #C142E1
triadic
#7242E1 #E17242 #42E172
tetradic
#7242E1 #E14262 #B1E142 #42E1C1
square
#7242E1 #E14262 #B1E142 #42E1C1
split-complementary
#7242E1 #E1C142 #62E142
monochromatic
#3C1792 #521FC6 #7242E1 #9977E9 #C1ACF2

Accessibility & contrast

On white

5.86
#7242E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7242E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242E1
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242E1#FFFFFF#000000##FFFFFF
##7242E11.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#4C6C8D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7242e1;
/* rgb */ color: rgb(114, 66, 225);
/* oklch */ color: oklch(53.0% 0.225 290.4);
Tailwind
colors: {
  custom: {
    50: '#a47aec',
    500: '#7242e1',
    950: '#000000',
  },
}
SCSS
$custom: #7242e1;
$custom-light: #a47aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7242e1",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 258.113,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.53036,
    "c": 0.22535,
    "h": 290.4
  },
  "luminance": 0.1291
}

Semantic roles & 50–950 ramp

primary
#7242E1
secondary
#CCE09F
accent
#EF38B8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7242E1

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

Preview Lab → · Contrast checker → · Palette generator →

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