#7F46CC#7F46CC

#7F46CC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.2% C 0.198 H 299.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7F46CC
RGBrgb(127, 70, 204)
HSLhsl(266, 57%, 54%)
HSVhsv(266, 66%, 80%)
CMYKcmyk(37.7%, 65.7%, 0%, 20%)
CIE-LABlab(43.14, 51.33, -60.65)
CIE-LCHlch(43.14, 79.45, 310.24°)
OKLaboklab(53.22% 0.096 -0.1728)
OKLCHoklch(53.22% 0.198 299.1)
XYZxyz(21.8389, 13.2517, 58.5223)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46CC #93CC46
analogous
#4650CC #7F46CC #C246CC
triadic
#7F46CC #CC7F46 #46CC7F
tetradic
#7F46CC #CC4650 #93CC46 #46CCC2
square
#7F46CC #CC4650 #93CC46 #46CCC2
split-complementary
#7F46CC #CCC246 #50CC46
monochromatic
#452177 #612EA7 #7F46CC #A076D9 #C1A6E6

Accessibility & contrast

On white

5.75
#7F46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7F46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46CC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46CC#FFFFFF#000000##FFFFFF
##7F46CC1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#6D6583
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f46cc;
/* rgb */ color: rgb(127, 70, 204);
/* oklch */ color: oklch(53.2% 0.198 299.1);
Tailwind
colors: {
  custom: {
    50: '#aa7ddc',
    500: '#7f46cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f46cc;
$custom-light: #aa7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46cc",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 265.522,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53221,
    "c": 0.19764,
    "h": 299.1
  },
  "luminance": 0.13252
}

Semantic roles & 50–950 ramp

primary
#7F46CC
secondary
#BBD49A
accent
#E0489F
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F46CC

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

Preview Lab → · Contrast checker → · Palette generator →

#7F46CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva