#7240C6#7240C6

#7240C6 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.6% C 0.197 H 295.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7240C6
RGBrgb(114, 64, 198)
HSLhsl(262, 54%, 51%)
HSVhsv(262, 68%, 78%)
CMYKcmyk(42.4%, 67.7%, 0%, 22.4%)
CIE-LABlab(40.12, 50.29, -62.14)
CIE-LCHlch(40.12, 79.94, 308.98°)
OKLaboklab(50.58% 0.0852 -0.1776)
OKLCHoklch(50.58% 0.197 295.6)
XYZxyz(18.9632, 11.3210, 54.6012)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240C6 #94C640
analogous
#4051C6 #7240C6 #B540C6
triadic
#7240C6 #C67240 #40C672
tetradic
#7240C6 #C64051 #94C640 #40C6B5
square
#7240C6 #C64051 #94C640 #40C6B5
split-complementary
#7240C6 #C6B540 #51C640
monochromatic
#3C206C #572E9B #7240C6 #956FD4 #B89EE2

Accessibility & contrast

On white

6.43
#7240C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7240C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240C6
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240C6#FFFFFF#000000##FFFFFF
##7240C61.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#5C607E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7240c6;
/* rgb */ color: rgb(114, 64, 198);
/* oklch */ color: oklch(50.6% 0.197 295.6);
Tailwind
colors: {
  custom: {
    50: '#a178d8',
    500: '#7240c6',
    950: '#000000',
  },
}
SCSS
$custom: #7240c6;
$custom-light: #a178d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7240c6",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 262.388,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50579,
    "c": 0.19694,
    "h": 295.6
  },
  "luminance": 0.11321
}

Semantic roles & 50–950 ramp

primary
#7240C6
secondary
#B8CE93
accent
#DD4AA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7240C6

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

Preview Lab → · Contrast checker → · Palette generator →

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