#7245C2#7245C2

#7245C2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.186 H 295.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7245C2
RGBrgb(114, 69, 194)
HSLhsl(262, 51%, 52%)
HSVhsv(262, 64%, 76%)
CMYKcmyk(41.2%, 64.4%, 0%, 23.9%)
CIE-LABlab(40.78, 46.59, -58.73)
CIE-LCHlch(40.78, 74.97, 308.42°)
OKLaboklab(50.96% 0.0804 -0.1676)
OKLCHoklch(50.96% 0.186 295.6)
XYZxyz(18.8026, 11.7283, 52.3016)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7245C2 #95C245
analogous
#4557C2 #7245C2 #B145C2
triadic
#7245C2 #C27245 #45C272
tetradic
#7245C2 #C24557 #95C245 #45C2B1
square
#7245C2 #C24557 #95C245 #45C2B1
split-complementary
#7245C2 #C2B145 #57C245
monochromatic
#3C236A #573298 #7245C2 #9573D1 #B8A1E0

Accessibility & contrast

On white

6.28
#7245C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7245C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7245C2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7245C2#FFFFFF#000000##FFFFFF
##7245C21.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#5D627D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7245c2;
/* rgb */ color: rgb(114, 69, 194);
/* oklch */ color: oklch(51.0% 0.186 295.6);
Tailwind
colors: {
  custom: {
    50: '#a07bd5',
    500: '#7245c2',
    950: '#000000',
  },
}
SCSS
$custom: #7245c2;
$custom-light: #a07bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7245c2",
  "rgb": {
    "r": 114,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 261.6,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50964,
    "c": 0.18584,
    "h": 295.6
  },
  "luminance": 0.11729
}

Semantic roles & 50–950 ramp

primary
#7245C2
secondary
#B9CD96
accent
#DA4EA8
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7245C2

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

Preview Lab → · Contrast checker → · Palette generator →

#7245C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva