#7B871B#7B871B

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

Color values

HEX#7B871B
RGBrgb(123, 135, 27)
HSLhsl(67, 67%, 32%)
HSVhsv(67, 80%, 53%)
CMYKcmyk(8.9%, 0%, 80%, 47.1%)
CIE-LABlab(53.62, -18.20, 51.86)
CIE-LCHlch(53.62, 54.96, 109.34°)
OKLaboklab(59.4% -0.0555 0.1134)
OKLCHoklch(59.4% 0.126 116.1)
XYZxyz(17.0307, 21.6183, 4.3123)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B871B #271B87
analogous
#875D1B #7B871B #45871B
triadic
#7B871B #1B7B87 #871B7B
tetradic
#7B871B #1B875D #271B87 #871B45
square
#7B871B #1B875D #271B87 #871B45
split-complementary
#7B871B #1B4587 #5D1B87
monochromatic
#1E2107 #4D5411 #7B871B #A9BA25 #C9D943

Accessibility & contrast

On white

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

On black

5.32
#7B871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B871B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B871B#FFFFFF#000000##000000
##7B871B1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b871b;
/* rgb */ color: rgb(123, 135, 27);
/* oklch */ color: oklch(59.4% 0.126 116.1);
Tailwind
colors: {
  custom: {
    50: '#a4a962',
    500: '#7b871b',
    950: '#000000',
  },
}
SCSS
$custom: #7b871b;
$custom-light: #a4a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7b871b",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 66.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59395,
    "c": 0.12622,
    "h": 116.1
  },
  "luminance": 0.21618
}

Semantic roles & 50–950 ramp

primary
#7B871B
secondary
#5144BA
accent
#3EEA51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B871B

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

Preview Lab → · Contrast checker → · Palette generator →

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