#7240CF#7240CF

#7240CF is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.207 H 293.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7240CF
RGBrgb(114, 64, 207)
HSLhsl(261, 60%, 53%)
HSVhsv(261, 69%, 81%)
CMYKcmyk(44.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(40.81, 52.67, -66.22)
CIE-LCHlch(40.81, 84.61, 308.50°)
OKLaboklab(51.3% 0.0837 -0.1896)
OKLCHoklch(51.3% 0.207 293.8)
XYZxyz(20.0322, 11.7486, 60.2316)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240CF #9DCF40
analogous
#4055CF #7240CF #B940CF
triadic
#7240CF #CF7240 #40CF72
tetradic
#7240CF #CF4055 #9DCF40 #40CFB9
square
#7240CF #CF4055 #9DCF40 #40CFB9
split-complementary
#7240CF #CFB940 #55CF40
monochromatic
#3D1E77 #562AA8 #7240CF #9671DB #BAA2E8

Accessibility & contrast

On white

6.27
#7240CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7240CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240CF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240CF#FFFFFF#000000##FFFFFF
##7240CF1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#576483
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7240cf;
/* rgb */ color: rgb(114, 64, 207);
/* oklch */ color: oklch(51.3% 0.207 293.8);
Tailwind
colors: {
  custom: {
    50: '#a279df',
    500: '#7240cf',
    950: '#000000',
  },
}
SCSS
$custom: #7240cf;
$custom-light: #a279df;
$custom-dark: #000000;
JSON
{
  "hex": "#7240cf",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 260.979,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51296,
    "c": 0.20724,
    "h": 293.8
  },
  "luminance": 0.11749
}

Semantic roles & 50–950 ramp

primary
#7240CF
secondary
#BFD497
accent
#E345AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240CF

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

Preview Lab → · Contrast checker → · Palette generator →

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