#7845F1#7845F1

#7845F1 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.240 H 289.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7845F1
RGBrgb(120, 69, 241)
HSLhsl(258, 86%, 61%)
HSVhsv(258, 71%, 95%)
CMYKcmyk(50.2%, 71.4%, 0%, 5.5%)
CIE-LABlab(45.08, 60.24, -78.60)
CIE-LCHlch(45.08, 99.03, 307.47°)
OKLaboklab(55.33% 0.0811 -0.2257)
OKLCHoklch(55.33% 0.24 289.8)
XYZxyz(25.7465, 14.5991, 84.6633)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845F1 #BEF145
analogous
#4568F1 #7845F1 #CE45F1
triadic
#7845F1 #F17845 #45F178
tetradic
#7845F1 #F14568 #BEF145 #45F1CE
square
#7845F1 #F14568 #BEF145 #45F1CE
split-complementary
#7845F1 #F1CE45 #68F145
monochromatic
#3D0DAE #5111E7 #7845F1 #A17EF5 #CBB7FA

Accessibility & contrast

On white

5.36
#7845F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7845F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845F1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845F1#FFFFFF#000000##FFFFFF
##7845F11.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF6
Deuteranopia (green-blind)
#0067EE
Tritanopia (blue-blind)
#4D7397
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7845f1;
/* rgb */ color: rgb(120, 69, 241);
/* oklch */ color: oklch(55.3% 0.240 289.8);
Tailwind
colors: {
  custom: {
    50: '#a97df7',
    500: '#7845f1',
    950: '#000000',
  },
}
SCSS
$custom: #7845f1;
$custom-light: #a97df7;
$custom-dark: #000000;
JSON
{
  "hex": "#7845f1",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 241
  },
  "hsl": {
    "h": 257.791,
    "s": 86,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55326,
    "c": 0.23987,
    "h": 289.8
  },
  "luminance": 0.146
}

Semantic roles & 50–950 ramp

primary
#7845F1
secondary
#D6E9A8
accent
#E303A0
background
#FBF7FF
surface
#F6EEFF
border
#D0C9D7
text
#110A17
muted
#807C85

Preview Lab

Preview with #7845F1

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

Preview Lab → · Contrast checker → · Palette generator →

#7845F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva