#7B871D#7B871D

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

Color values

HEX#7B871D
RGBrgb(123, 135, 29)
HSLhsl(67, 65%, 32%)
HSVhsv(67, 79%, 53%)
CMYKcmyk(8.9%, 0%, 78.5%, 47.1%)
CIE-LABlab(53.63, -18.11, 51.22)
CIE-LCHlch(53.63, 54.33, 109.48°)
OKLaboklab(59.41% -0.0551 0.1124)
OKLCHoklch(59.41% 0.125 116.1)
XYZxyz(17.0546, 21.6279, 4.4383)
Luminance0.2163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B871D #291D87
analogous
#875E1D #7B871D #46871D
triadic
#7B871D #1D7B87 #871D7B
tetradic
#7B871D #1D875E #291D87 #871D46
square
#7B871D #1D875E #291D87 #871D46
split-complementary
#7B871D #1D4687 #5E1D87
monochromatic
#1F2207 #4D5512 #7B871D #A9B928 #C7D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B871D#FFFFFF#000000##000000
##7B871D1.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)
#918002
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#837F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b871d;
/* rgb */ color: rgb(123, 135, 29);
/* oklch */ color: oklch(59.4% 0.125 116.1);
Tailwind
colors: {
  custom: {
    50: '#a4a963',
    500: '#7b871d',
    950: '#000000',
  },
}
SCSS
$custom: #7b871d;
$custom-light: #a4a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7b871d",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 66.792,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59406,
    "c": 0.12515,
    "h": 116.1
  },
  "luminance": 0.21628
}

Semantic roles & 50–950 ramp

primary
#7B871D
secondary
#5346B9
accent
#40E853
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B871D

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

Preview Lab → · Contrast checker → · Palette generator →

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