#7240AF#7240AF

#7240AF is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.170 H 301.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7240AF
RGBrgb(114, 64, 175)
HSLhsl(267, 46%, 47%)
HSVhsv(267, 63%, 69%)
CMYKcmyk(34.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(38.44, 44.30, -51.34)
CIE-LCHlch(38.44, 67.81, 310.79°)
OKLaboklab(48.85% 0.0877 -0.1458)
OKLCHoklch(48.85% 0.17 301)
XYZxyz(16.5088, 10.3393, 41.6751)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7240AF #7DAF40
analogous
#4045AF #7240AF #AA40AF
triadic
#7240AF #AF7240 #40AF72
tetradic
#7240AF #AF4045 #7DAF40 #40AFAA
square
#7240AF #AF4045 #7DAF40 #40AFAA
split-complementary
#7240AF #AFAA40 #45AF40
monochromatic
#381F55 #553082 #7240AF #9165C7 #B192D7

Accessibility & contrast

On white

6.85
#7240AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7240AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7240AF
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7240AF#FFFFFF#000000##FFFFFF
##7240AF1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#165AAD
Tritanopia (blue-blind)
#655871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7240af;
/* rgb */ color: rgb(114, 64, 175);
/* oklch */ color: oklch(48.8% 0.170 301.0);
Tailwind
colors: {
  custom: {
    50: '#9f78c8',
    500: '#7240af',
    950: '#000000',
  },
}
SCSS
$custom: #7240af;
$custom-light: #9f78c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7240af",
  "rgb": {
    "r": 114,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 267.027,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48848,
    "c": 0.17015,
    "h": 301
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#7240AF
secondary
#A8C388
accent
#D6529A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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