#7240CA#7240CA

#7240CA is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.202 H 294.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7240CA
RGBrgb(114, 64, 202)
HSLhsl(262, 57%, 52%)
HSVhsv(262, 68%, 79%)
CMYKcmyk(43.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(40.42, 51.34, -63.97)
CIE-LCHlch(40.42, 82.02, 308.75°)
OKLaboklab(50.9% 0.0846 -0.1829)
OKLCHoklch(50.9% 0.202 294.8)
XYZxyz(19.4306, 11.5080, 57.0632)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240CA #98CA40
analogous
#4053CA #7240CA #B740CA
triadic
#7240CA #CA7240 #40CA72
tetradic
#7240CA #CA4053 #98CA40 #40CAB7
square
#7240CA #CA4053 #98CA40 #40CAB7
split-complementary
#7240CA #CAB740 #53CA40
monochromatic
#3D1F70 #562CA0 #7240CA #9570D7 #B9A0E5

Accessibility & contrast

On white

6.36
#7240CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7240CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240CA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240CA#FFFFFF#000000##FFFFFF
##7240CA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#5A6280
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7240ca;
/* rgb */ color: rgb(114, 64, 202);
/* oklch */ color: oklch(50.9% 0.202 294.8);
Tailwind
colors: {
  custom: {
    50: '#a278db',
    500: '#7240ca',
    950: '#000000',
  },
}
SCSS
$custom: #7240ca;
$custom-light: #a278db;
$custom-dark: #000000;
JSON
{
  "hex": "#7240ca",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 261.739,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50895,
    "c": 0.20153,
    "h": 294.8
  },
  "luminance": 0.11508
}

Semantic roles & 50–950 ramp

primary
#7240CA
secondary
#BBD195
accent
#E048A9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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