#7F25B2#7F25B2

#7F25B2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.6% C 0.209 H 309.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7F25B2
RGBrgb(127, 37, 178)
HSLhsl(278, 66%, 42%)
HSVhsv(278, 79%, 70%)
CMYKcmyk(28.7%, 79.2%, 0%, 30.2%)
CIE-LABlab(36.08, 59.68, -56.87)
CIE-LCHlch(36.08, 82.44, 316.38°)
OKLaboklab(47.6% 0.1325 -0.1615)
OKLCHoklch(47.6% 0.209 309.4)
XYZxyz(17.4482, 9.0499, 42.9385)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25B2 #58B225
analogous
#3925B2 #7F25B2 #B2259E
triadic
#7F25B2 #B27F25 #25B27F
tetradic
#7F25B2 #B23925 #58B225 #259EB2
square
#7F25B2 #B23925 #58B225 #259EB2
split-complementary
#7F25B2 #9EB225 #25B239
monochromatic
#37104D #5B1A7F #7F25B2 #9F3DD7 #B870E1

Accessibility & contrast

On white

7.47
#7F25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F25B2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25B2#FFFFFF#000000##FFFFFF
##7F25B21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#77496C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f25b2;
/* rgb */ color: rgb(127, 37, 178);
/* oklch */ color: oklch(47.6% 0.209 309.4);
Tailwind
colors: {
  custom: {
    50: '#a96bca',
    500: '#7f25b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f25b2;
$custom-light: #a96bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25b2",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 278.298,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47601,
    "c": 0.20887,
    "h": 309.4
  },
  "luminance": 0.0905
}

Semantic roles & 50–950 ramp

primary
#7F25B2
secondary
#8CC86B
accent
#E93F7C
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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