#7F2BAF#7F2BAF

#7F2BAF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.9% C 0.200 H 309.8°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7F2BAF
RGBrgb(127, 43, 175)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 75%, 69%)
CMYKcmyk(27.4%, 75.4%, 0%, 31.4%)
CIE-LABlab(36.62, 56.83, -54.21)
CIE-LCHlch(36.62, 78.54, 316.35°)
OKLaboklab(47.91% 0.1279 -0.1537)
OKLCHoklch(47.91% 0.2 309.8)
XYZxyz(17.3526, 9.3353, 41.4369)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BAF #5BAF2B
analogous
#3D2BAF #7F2BAF #AF2B9D
triadic
#7F2BAF #AF7F2B #2BAF7F
tetradic
#7F2BAF #AF3D2B #5BAF2B #2B9DAF
square
#7F2BAF #AF3D2B #5BAF2B #2B9DAF
split-complementary
#7F2BAF #9DAF2B #2BAF3D
monochromatic
#38134D #5B1F7E #7F2BAF #9F46D1 #B877DE

Accessibility & contrast

On white

7.32
#7F2BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BAF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BAF#FFFFFF#000000##FFFFFF
##7F2BAF1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0357AC
Tritanopia (blue-blind)
#784A6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2baf;
/* rgb */ color: rgb(127, 43, 175);
/* oklch */ color: oklch(47.9% 0.200 309.8);
Tailwind
colors: {
  custom: {
    50: '#a96dc8',
    500: '#7f2baf',
    950: '#000000',
  },
}
SCSS
$custom: #7f2baf;
$custom-light: #a96dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2baf",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 278.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47911,
    "c": 0.19996,
    "h": 309.8
  },
  "luminance": 0.09335
}

Semantic roles & 50–950 ramp

primary
#7F2BAF
secondary
#8FC570
accent
#E4447E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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