#7B7020#7B7020

#7B7020 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.099 H 101.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7B7020
RGBrgb(123, 112, 32)
HSLhsl(53, 59%, 30%)
HSVhsv(53, 74%, 48%)
CMYKcmyk(0%, 8.9%, 74%, 51.8%)
CIE-LABlab(46.85, -5.44, 43.66)
CIE-LCHlch(46.85, 43.99, 97.10°)
OKLaboklab(54% -0.0193 0.097)
OKLCHoklch(54% 0.099 101.3)
XYZxyz(14.2239, 15.9042, 3.6868)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7020 #202B7B
analogous
#7B4220 #7B7020 #587B20
triadic
#7B7020 #207B70 #70207B
tetradic
#7B7020 #207B42 #202B7B #7B2058
square
#7B7020 #207B42 #202B7B #7B2058
split-complementary
#7B7020 #20587B #42207B
monochromatic
#1A1807 #4A4413 #7B7020 #AC9C2D #CFBE46

Accessibility & contrast

On white

5.02
#7B7020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7B7020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B7020
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7020#FFFFFF#000000##FFFFFF
##7B70201.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D13
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#856860
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b7020;
/* rgb */ color: rgb(123, 112, 32);
/* oklch */ color: oklch(54.0% 0.099 101.3);
Tailwind
colors: {
  custom: {
    50: '#a49861',
    500: '#7b7020',
    950: '#000000',
  },
}
SCSS
$custom: #7b7020;
$custom-light: #a49861;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7020",
  "rgb": {
    "r": 123,
    "g": 112,
    "b": 32
  },
  "hsl": {
    "h": 52.747,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53995,
    "c": 0.09886,
    "h": 101.3
  },
  "luminance": 0.15904
}

Semantic roles & 50–950 ramp

primary
#7B7020
secondary
#4955AE
accent
#59E246
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7B7020

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

Preview Lab → · Contrast checker → · Palette generator →

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