#7B2FAF#7B2FAF

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

Color values

HEX#7B2FAF
RGBrgb(123, 47, 175)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 73%, 69%)
CMYKcmyk(29.7%, 73.1%, 0%, 31.4%)
CIE-LABlab(36.63, 54.42, -54.22)
CIE-LCHlch(36.63, 76.82, 315.11°)
OKLaboklab(47.8% 0.1187 -0.1539)
OKLCHoklch(47.8% 0.194 307.6)
XYZxyz(16.9211, 9.3394, 41.4604)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FAF #63AF2F
analogous
#3B2FAF #7B2FAF #AF2FA3
triadic
#7B2FAF #AF7B2F #2FAF7B
tetradic
#7B2FAF #AF3B2F #63AF2F #2FA3AF
square
#7B2FAF #AF3B2F #63AF2F #2FA3AF
split-complementary
#7B2FAF #A3AF2F #2FAF3B
monochromatic
#37154F #59227F #7B2FAF #9A4CCF #B57CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2FAF#FFFFFF#000000##FFFFFF
##7B2FAF1.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)
#0057AC
Tritanopia (blue-blind)
#734D6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2faf;
/* rgb */ color: rgb(123, 47, 175);
/* oklch */ color: oklch(47.8% 0.194 307.6);
Tailwind
colors: {
  custom: {
    50: '#a66fc8',
    500: '#7b2faf',
    950: '#000000',
  },
}
SCSS
$custom: #7b2faf;
$custom-light: #a66fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2faf",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 275.625,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47798,
    "c": 0.19433,
    "h": 307.6
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#7B2FAF
secondary
#95C475
accent
#E14785
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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