#7240D3#7240D3

#7240D3 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.212 H 293.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7240D3
RGBrgb(114, 64, 211)
HSLhsl(260, 63%, 54%)
HSVhsv(260, 70%, 83%)
CMYKcmyk(46%, 69.7%, 0%, 17.3%)
CIE-LABlab(41.13, 53.73, -68.01)
CIE-LCHlch(41.13, 86.68, 308.31°)
OKLaboklab(51.62% 0.083 -0.1948)
OKLCHoklch(51.62% 0.212 293.1)
XYZxyz(20.5275, 11.9467, 62.8398)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240D3 #A1D340
analogous
#4058D3 #7240D3 #BC40D3
triadic
#7240D3 #D37240 #40D372
tetradic
#7240D3 #D34058 #A1D340 #40D3BC
square
#7240D3 #D34058 #A1D340 #40D3BC
split-complementary
#7240D3 #D3BC40 #58D340
monochromatic
#3D1D7C #5628AE #7240D3 #9772DE #BBA3EA

Accessibility & contrast

On white

6.20
#7240D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7240D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240D3
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240D3#FFFFFF#000000##FFFFFF
##7240D31.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#556585
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7240d3;
/* rgb */ color: rgb(114, 64, 211);
/* oklch */ color: oklch(51.6% 0.212 293.1);
Tailwind
colors: {
  custom: {
    50: '#a379e2',
    500: '#7240d3',
    950: '#000000',
  },
}
SCSS
$custom: #7240d3;
$custom-light: #a379e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7240d3",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 260.408,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51621,
    "c": 0.21178,
    "h": 293.1
  },
  "luminance": 0.11947
}

Semantic roles & 50–950 ramp

primary
#7240D3
secondary
#C1D798
accent
#E642AE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7240D3

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

Preview Lab → · Contrast checker → · Palette generator →

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