#7B8720#7B8720

#7B8720 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.123 H 116.2°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7B8720
RGBrgb(123, 135, 32)
HSLhsl(67, 62%, 33%)
HSVhsv(67, 76%, 53%)
CMYKcmyk(8.9%, 0%, 76.3%, 47.1%)
CIE-LABlab(53.65, -17.97, 50.21)
CIE-LCHlch(53.65, 53.33, 109.70°)
OKLaboklab(59.43% -0.0544 0.1108)
OKLCHoklch(59.43% 0.123 116.2)
XYZxyz(17.0935, 21.6434, 4.6433)
Luminance0.2164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8720 #2C2087
analogous
#875F20 #7B8720 #488720
triadic
#7B8720 #207B87 #87207B
tetradic
#7B8720 #20875F #2C2087 #872048
square
#7B8720 #20875F #2C2087 #872048
split-complementary
#7B8720 #204887 #5F2087
monochromatic
#212409 #4E5614 #7B8720 #A8B82C #C5D54D

Accessibility & contrast

On white

3.94
#7B8720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#7B8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8720
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8720#FFFFFF#000000##000000
##7B87201.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#918009
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#837F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b8720;
/* rgb */ color: rgb(123, 135, 32);
/* oklch */ color: oklch(59.4% 0.123 116.2);
Tailwind
colors: {
  custom: {
    50: '#a4a964',
    500: '#7b8720',
    950: '#000000',
  },
}
SCSS
$custom: #7b8720;
$custom-light: #a4a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8720",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 66.99,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59425,
    "c": 0.12343,
    "h": 116.2
  },
  "luminance": 0.21643
}

Semantic roles & 50–950 ramp

primary
#7B8720
secondary
#584BB8
accent
#43E556
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8720

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

Preview Lab → · Contrast checker → · Palette generator →

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