#7242BD#7242BD

#7242BD is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.184 H 297.2°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7242BD
RGBrgb(114, 66, 189)
HSLhsl(263, 48%, 50%)
HSVhsv(263, 65%, 74%)
CMYKcmyk(39.7%, 65.1%, 0%, 25.9%)
CIE-LABlab(39.83, 46.87, -57.36)
CIE-LCHlch(39.83, 74.07, 309.25°)
OKLaboklab(50.16% 0.0842 -0.1635)
OKLCHoklch(50.16% 0.184 297.2)
XYZxyz(18.0706, 11.1477, 49.3339)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242BD #8DBD42
analogous
#424FBD #7242BD #B042BD
triadic
#7242BD #BD7242 #42BD72
tetradic
#7242BD #BD424F #8DBD42 #42BDB0
square
#7242BD #BD424F #8DBD42 #42BDB0
split-complementary
#7242BD #BDB042 #4FBD42
monochromatic
#3B2262 #573290 #7242BD #946FCD #B69DDD

Accessibility & contrast

On white

6.50
#7242BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7242BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242BD
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242BD#FFFFFF#000000##FFFFFF
##7242BD1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#605E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7242bd;
/* rgb */ color: rgb(114, 66, 189);
/* oklch */ color: oklch(50.2% 0.184 297.2);
Tailwind
colors: {
  custom: {
    50: '#a079d2',
    500: '#7242bd',
    950: '#000000',
  },
}
SCSS
$custom: #7242bd;
$custom-light: #a079d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7242bd",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 263.415,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.50161,
    "c": 0.1839,
    "h": 297.2
  },
  "luminance": 0.11148
}

Semantic roles & 50–950 ramp

primary
#7242BD
secondary
#B3C992
accent
#D850A3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7242BD

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

Preview Lab → · Contrast checker → · Palette generator →

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