#7B40E2#7B40E2

#7B40E2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.8% C 0.229 H 293.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7B40E2
RGBrgb(123, 64, 226)
HSLhsl(262, 74%, 57%)
HSVhsv(262, 72%, 89%)
CMYKcmyk(45.6%, 71.7%, 0%, 11.4%)
CIE-LABlab(43.31, 59.16, -73.00)
CIE-LCHlch(43.31, 93.96, 309.02°)
OKLaboklab(53.77% 0.0927 -0.2092)
OKLCHoklch(53.77% 0.229 293.9)
XYZxyz(23.7255, 13.3680, 73.2670)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40E2 #A7E240
analogous
#4056E2 #7B40E2 #CC40E2
triadic
#7B40E2 #E27B40 #40E27B
tetradic
#7B40E2 #E24056 #A7E240 #40E2CC
square
#7B40E2 #E24056 #A7E240 #40E2CC
split-complementary
#7B40E2 #E2CC40 #56E240
monochromatic
#431692 #5C1EC7 #7B40E2 #A075EA #C4AAF2

Accessibility & contrast

On white

5.72
#7B40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7B40E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40E2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40E2#FFFFFF#000000##FFFFFF
##7B40E21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0063DF
Tritanopia (blue-blind)
#5D6A8D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7b40e2;
/* rgb */ color: rgb(123, 64, 226);
/* oklch */ color: oklch(53.8% 0.229 293.9);
Tailwind
colors: {
  custom: {
    50: '#aa7aec',
    500: '#7b40e2',
    950: '#000000',
  },
}
SCSS
$custom: #7b40e2;
$custom-light: #aa7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40e2",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 261.852,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53767,
    "c": 0.22879,
    "h": 293.9
  },
  "luminance": 0.13369
}

Semantic roles & 50–950 ramp

primary
#7B40E2
secondary
#C8E09E
accent
#F038AD
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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