#7B871E#7B871E

#7B871E 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#7B871E
RGBrgb(123, 135, 30)
HSLhsl(67, 64%, 32%)
HSVhsv(67, 78%, 53%)
CMYKcmyk(8.9%, 0%, 77.8%, 47.1%)
CIE-LABlab(53.64, -18.07, 50.89)
CIE-LCHlch(53.64, 54.00, 109.55°)
OKLaboklab(59.41% -0.0549 0.1119)
OKLCHoklch(59.41% 0.125 116.1)
XYZxyz(17.0672, 21.6329, 4.5045)
Luminance0.2163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B871E #2A1E87
analogous
#875E1E #7B871E #47871E
triadic
#7B871E #1E7B87 #871E7B
tetradic
#7B871E #1E875E #2A1E87 #871E47
square
#7B871E #1E875E #2A1E87 #871E47
split-complementary
#7B871E #1E4787 #5E1E87
monochromatic
#202308 #4D5513 #7B871E #A9B929 #C6D749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7b871e;
/* rgb */ color: rgb(123, 135, 30);
/* oklch */ color: oklch(59.4% 0.125 116.1);
Tailwind
colors: {
  custom: {
    50: '#a4a963',
    500: '#7b871e',
    950: '#000000',
  },
}
SCSS
$custom: #7b871e;
$custom-light: #a4a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7b871e",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 66.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59412,
    "c": 0.12459,
    "h": 116.1
  },
  "luminance": 0.21633
}

Semantic roles & 50–950 ramp

primary
#7B871E
secondary
#5548B9
accent
#41E754
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B871E

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

Preview Lab → · Contrast checker → · Palette generator →

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