#7242CB#7242CB

#7242CB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.200 H 294.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7242CB
RGBrgb(114, 66, 203)
HSLhsl(261, 57%, 53%)
HSVhsv(261, 67%, 80%)
CMYKcmyk(43.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(40.87, 50.58, -63.82)
CIE-LCHlch(40.87, 81.43, 308.40°)
OKLaboklab(51.24% 0.0824 -0.1825)
OKLCHoklch(51.24% 0.2 294.3)
XYZxyz(19.6642, 11.7851, 57.7270)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242CB #9BCB42
analogous
#4256CB #7242CB #B642CB
triadic
#7242CB #CB7242 #42CB72
tetradic
#7242CB #CB4256 #9BCB42 #42CBB6
square
#7242CB #CB4256 #9BCB42 #42CBB6
split-complementary
#7242CB #CBB642 #56CB42
monochromatic
#3D2073 #562DA3 #7242CB #9672D8 #BAA2E5

Accessibility & contrast

On white

6.26
#7242CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7242CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242CB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242CB#FFFFFF#000000##FFFFFF
##7242CB1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#596381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7242cb;
/* rgb */ color: rgb(114, 66, 203);
/* oklch */ color: oklch(51.2% 0.200 294.3);
Tailwind
colors: {
  custom: {
    50: '#a27adc',
    500: '#7242cb',
    950: '#000000',
  },
}
SCSS
$custom: #7242cb;
$custom-light: #a27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7242cb",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 261.022,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51241,
    "c": 0.20024,
    "h": 294.3
  },
  "luminance": 0.11786
}

Semantic roles & 50–950 ramp

primary
#7242CB
secondary
#BDD297
accent
#E048AB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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