#7B229B#7B229B

#7B229B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.190 H 315.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7B229B
RGBrgb(123, 34, 155)
HSLhsl(284, 64%, 37%)
HSVhsv(284, 78%, 61%)
CMYKcmyk(20.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(33.40, 55.20, -47.42)
CIE-LCHlch(33.40, 72.77, 319.34°)
OKLaboklab(45.05% 0.1343 -0.1338)
OKLCHoklch(45.05% 0.19 315.1)
XYZxyz(14.6558, 7.7221, 31.7225)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B229B #429B22
analogous
#3E229B #7B229B #9B227F
triadic
#7B229B #9B7B22 #229B7B
tetradic
#7B229B #9B3E22 #429B22 #227F9B
square
#7B229B #9B3E22 #429B22 #227F9B
split-complementary
#7B229B #7F9B22 #229B3E
monochromatic
#2B0C37 #531769 #7B229B #A32DCD #BA5CDB

Accessibility & contrast

On white

8.25
#7B229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B229B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B229B#FFFFFF#000000##FFFFFF
##7B229B1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#1C5198
Tritanopia (blue-blind)
#783E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b229b;
/* rgb */ color: rgb(123, 34, 155);
/* oklch */ color: oklch(45.1% 0.190 315.1);
Tailwind
colors: {
  custom: {
    50: '#a568b9',
    500: '#7b229b',
    950: '#000000',
  },
}
SCSS
$custom: #7b229b;
$custom-light: #a568b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b229b",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 284.132,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.1896,
    "h": 315.1
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#7B229B
secondary
#74C059
accent
#E7416D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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