#7240CB#7240CB

#7240CB is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.203 H 294.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7240CB
RGBrgb(114, 64, 203)
HSLhsl(262, 57%, 52%)
HSVhsv(262, 68%, 80%)
CMYKcmyk(43.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.50, 51.61, -64.42)
CIE-LCHlch(40.50, 82.54, 308.70°)
OKLaboklab(50.98% 0.0844 -0.1843)
OKLCHoklch(50.98% 0.203 294.6)
XYZxyz(19.5494, 11.5555, 57.6888)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240CB #99CB40
analogous
#4053CB #7240CB #B840CB
triadic
#7240CB #CB7240 #40CB72
tetradic
#7240CB #CB4053 #99CB40 #40CBB8
square
#7240CB #CB4053 #99CB40 #40CBB8
split-complementary
#7240CB #CBB840 #53CB40
monochromatic
#3D1F72 #562CA2 #7240CB #9670D8 #B9A0E5

Accessibility & contrast

On white

6.34
#7240CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7240CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240CB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240CB#FFFFFF#000000##FFFFFF
##7240CB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#596281
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7240cb;
/* rgb */ color: rgb(114, 64, 203);
/* oklch */ color: oklch(51.0% 0.203 294.6);
Tailwind
colors: {
  custom: {
    50: '#a278dc',
    500: '#7240cb',
    950: '#000000',
  },
}
SCSS
$custom: #7240cb;
$custom-light: #a278dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7240cb",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 261.583,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50975,
    "c": 0.20268,
    "h": 294.6
  },
  "luminance": 0.11556
}

Semantic roles & 50–950 ramp

primary
#7240CB
secondary
#BCD295
accent
#E047A9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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