#7242AF#7242AF

#7242AF is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.1% C 0.167 H 300.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7242AF
RGBrgb(114, 66, 175)
HSLhsl(266, 45%, 47%)
HSVhsv(266, 62%, 69%)
CMYKcmyk(34.9%, 62.3%, 0%, 31.4%)
CIE-LABlab(38.84, 43.22, -50.70)
CIE-LCHlch(38.84, 66.62, 310.45°)
OKLaboklab(49.14% 0.0853 -0.1439)
OKLCHoklch(49.14% 0.167 300.6)
XYZxyz(16.6236, 10.5689, 41.7133)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242AF #7FAF42
analogous
#4249AF #7242AF #A942AF
triadic
#7242AF #AF7242 #42AF72
tetradic
#7242AF #AF4249 #7FAF42 #42AFA9
square
#7242AF #AF4249 #7FAF42 #42AFA9
split-complementary
#7242AF #AFA942 #49AF42
monochromatic
#382056 #553183 #7242AF #9168C6 #B295D7

Accessibility & contrast

On white

6.74
#7242AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7242AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242AF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242AF#FFFFFF#000000##FFFFFF
##7242AF1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#1B5BAD
Tritanopia (blue-blind)
#655972
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7242af;
/* rgb */ color: rgb(114, 66, 175);
/* oklch */ color: oklch(49.1% 0.167 300.6);
Tailwind
colors: {
  custom: {
    50: '#9f79c8',
    500: '#7242af',
    950: '#000000',
  },
}
SCSS
$custom: #7242af;
$custom-light: #9f79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7242af",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 266.422,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49138,
    "c": 0.1673,
    "h": 300.6
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#7242AF
secondary
#AAC28A
accent
#D5539C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7242AF

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

Preview Lab → · Contrast checker → · Palette generator →

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