#7B871F#7B871F

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

Color values

HEX#7B871F
RGBrgb(123, 135, 31)
HSLhsl(67, 63%, 33%)
HSVhsv(67, 77%, 53%)
CMYKcmyk(8.9%, 0%, 77%, 47.1%)
CIE-LABlab(53.64, -18.02, 50.55)
CIE-LCHlch(53.64, 53.67, 109.62°)
OKLaboklab(59.42% -0.0546 0.1113)
OKLCHoklch(59.42% 0.124 116.1)
XYZxyz(17.0801, 21.6381, 4.5729)
Luminance0.2164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B871F #2B1F87
analogous
#875F1F #7B871F #47871F
triadic
#7B871F #1F7B87 #871F7B
tetradic
#7B871F #1F875F #2B1F87 #871F47
square
#7B871F #1F875F #2B1F87 #871F47
split-complementary
#7B871F #1F4787 #5F1F87
monochromatic
#202308 #4E5514 #7B871F #A8B92A #C6D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B871F#FFFFFF#000000##000000
##7B871F1.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)
#918007
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#837F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b871f;
/* rgb */ color: rgb(123, 135, 31);
/* oklch */ color: oklch(59.4% 0.124 116.1);
Tailwind
colors: {
  custom: {
    50: '#a4a964',
    500: '#7b871f',
    950: '#000000',
  },
}
SCSS
$custom: #7b871f;
$custom-light: #a4a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7b871f",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 66.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59418,
    "c": 0.12402,
    "h": 116.1
  },
  "luminance": 0.21638
}

Semantic roles & 50–950 ramp

primary
#7B871F
secondary
#564AB8
accent
#42E655
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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