#7242DB#7242DB

#7242DB is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.219 H 291.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7242DB
RGBrgb(114, 66, 219)
HSLhsl(259, 68%, 56%)
HSVhsv(259, 70%, 86%)
CMYKcmyk(47.9%, 69.9%, 0%, 14.1%)
CIE-LABlab(42.13, 54.87, -70.97)
CIE-LCHlch(42.13, 89.70, 307.71°)
OKLaboklab(52.54% 0.0797 -0.2035)
OKLCHoklch(52.54% 0.219 291.4)
XYZxyz(21.6702, 12.5875, 68.2919)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242DB #ABDB42
analogous
#425EDB #7242DB #BF42DB
triadic
#7242DB #DB7242 #42DB72
tetradic
#7242DB #DB425E #ABDB42 #42DBBF
square
#7242DB #DB425E #ABDB42 #42DBBF
split-complementary
#7242DB #DBBF42 #5EDB42
monochromatic
#3D1A89 #5424BC #7242DB #9875E5 #BFA9EF

Accessibility & contrast

On white

5.97
#7242DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7242DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242DB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242DB#FFFFFF#000000##FFFFFF
##7242DB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#50698A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7242db;
/* rgb */ color: rgb(114, 66, 219);
/* oklch */ color: oklch(52.5% 0.219 291.4);
Tailwind
colors: {
  custom: {
    50: '#a37ae7',
    500: '#7242db',
    950: '#000000',
  },
}
SCSS
$custom: #7242db;
$custom-light: #a37ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7242db",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 258.824,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52535,
    "c": 0.21857,
    "h": 291.4
  },
  "luminance": 0.12588
}

Semantic roles & 50–950 ramp

primary
#7242DB
secondary
#C8DC9D
accent
#EB3DB4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7242DB

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

Preview Lab → · Contrast checker → · Palette generator →

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