#7242BC#7242BC

#7242BC is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.183 H 297.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7242BC
RGBrgb(114, 66, 188)
HSLhsl(264, 48%, 50%)
HSVhsv(264, 65%, 74%)
CMYKcmyk(39.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(39.76, 46.61, -56.89)
CIE-LCHlch(39.76, 73.54, 309.33°)
OKLaboklab(50.09% 0.0843 -0.1621)
OKLCHoklch(50.09% 0.183 297.5)
XYZxyz(17.9624, 11.1044, 48.7642)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242BC #8CBC42
analogous
#424FBC #7242BC #AF42BC
triadic
#7242BC #BC7242 #42BC72
tetradic
#7242BC #BC424F #8CBC42 #42BCAF
square
#7242BC #BC424F #8CBC42 #42BCAF
split-complementary
#7242BC #BCAF42 #4FBC42
monochromatic
#3B2261 #57328F #7242BC #946FCC #B59CDC

Accessibility & contrast

On white

6.52
#7242BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7242BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242BC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242BC#FFFFFF#000000##FFFFFF
##7242BC1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#605E79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7242bc;
/* rgb */ color: rgb(114, 66, 188);
/* oklch */ color: oklch(50.1% 0.183 297.5);
Tailwind
colors: {
  custom: {
    50: '#a079d1',
    500: '#7242bc',
    950: '#000000',
  },
}
SCSS
$custom: #7242bc;
$custom-light: #a079d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7242bc",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 263.607,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50086,
    "c": 0.18273,
    "h": 297.5
  },
  "luminance": 0.11105
}

Semantic roles & 50–950 ramp

primary
#7242BC
secondary
#B3C991
accent
#D850A2
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #7242BC

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

Preview Lab → · Contrast checker → · Palette generator →

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