#7242CA#7242CA

#7242CA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.199 H 294.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7242CA
RGBrgb(114, 66, 202)
HSLhsl(261, 56%, 53%)
HSVhsv(261, 67%, 79%)
CMYKcmyk(43.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.80, 50.31, -63.36)
CIE-LCHlch(40.80, 80.91, 308.45°)
OKLaboklab(51.16% 0.0825 -0.1812)
OKLCHoklch(51.16% 0.199 294.5)
XYZxyz(19.5454, 11.7376, 57.1014)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7242CA #9ACA42
analogous
#4256CA #7242CA #B642CA
triadic
#7242CA #CA7242 #42CA72
tetradic
#7242CA #CA4256 #9ACA42 #42CAB6
square
#7242CA #CA4256 #9ACA42 #42CAB6
split-complementary
#7242CA #CAB642 #56CA42
monochromatic
#3D2072 #562DA2 #7242CA #9672D7 #B9A2E5

Accessibility & contrast

On white

6.27
#7242CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7242CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7242CA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7242CA#FFFFFF#000000##FFFFFF
##7242CA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#5A6381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7242ca;
/* rgb */ color: rgb(114, 66, 202);
/* oklch */ color: oklch(51.2% 0.199 294.5);
Tailwind
colors: {
  custom: {
    50: '#a17adb',
    500: '#7242ca',
    950: '#000000',
  },
}
SCSS
$custom: #7242ca;
$custom-light: #a17adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7242ca",
  "rgb": {
    "r": 114,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 261.176,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51162,
    "c": 0.19909,
    "h": 294.5
  },
  "luminance": 0.11738
}

Semantic roles & 50–950 ramp

primary
#7242CA
secondary
#BDD196
accent
#DF48AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7242CA

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

Preview Lab → · Contrast checker → · Palette generator →

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