#7240CC#7240CC

#7240CC is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.204 H 294.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7240CC
RGBrgb(114, 64, 204)
HSLhsl(261, 58%, 53%)
HSVhsv(261, 69%, 80%)
CMYKcmyk(44.1%, 68.6%, 0%, 20%)
CIE-LABlab(40.58, 51.87, -64.87)
CIE-LCHlch(40.58, 83.06, 308.65°)
OKLaboklab(51.05% 0.0842 -0.1856)
OKLCHoklch(51.05% 0.204 294.4)
XYZxyz(19.6690, 11.6033, 58.3184)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240CC #9ACC40
analogous
#4054CC #7240CC #B840CC
triadic
#7240CC #CC7240 #40CC72
tetradic
#7240CC #CC4054 #9ACC40 #40CCB8
square
#7240CC #CC4054 #9ACC40 #40CCB8
split-complementary
#7240CC #CCB840 #54CC40
monochromatic
#3D1F73 #562CA3 #7240CC #9670D9 #B9A1E6

Accessibility & contrast

On white

6.32
#7240CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7240CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240CC
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240CC#FFFFFF#000000##FFFFFF
##7240CC1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#596381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7240cc;
/* rgb */ color: rgb(114, 64, 204);
/* oklch */ color: oklch(51.1% 0.204 294.4);
Tailwind
colors: {
  custom: {
    50: '#a278dd',
    500: '#7240cc',
    950: '#000000',
  },
}
SCSS
$custom: #7240cc;
$custom-light: #a278dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7240cc",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 261.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51054,
    "c": 0.20382,
    "h": 294.4
  },
  "luminance": 0.11604
}

Semantic roles & 50–950 ramp

primary
#7240CC
secondary
#BDD295
accent
#E147AA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240CC

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

Preview Lab → · Contrast checker → · Palette generator →

#7240CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva