#7B861A#7B861A

#7B861A is a mid, vivid yellow. Relative luminance 0.213; OKLCH L 59.1% C 0.126 H 115.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7B861A
RGBrgb(123, 134, 26)
HSLhsl(66, 68%, 31%)
HSVhsv(66, 81%, 53%)
CMYKcmyk(8.2%, 0%, 80.6%, 47.5%)
CIE-LABlab(53.32, -17.72, 51.90)
CIE-LCHlch(53.32, 54.84, 108.85°)
OKLaboklab(59.15% -0.0542 0.1133)
OKLCHoklch(59.15% 0.126 115.6)
XYZxyz(16.8804, 21.3360, 4.2061)
Luminance0.2134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B861A #251A86
analogous
#865B1A #7B861A #45861A
triadic
#7B861A #1A7B86 #861A7B
tetradic
#7B861A #1A865B #251A86 #861A45
square
#7B861A #1A865B #251A86 #861A45
split-complementary
#7B861A #1A4586 #5B1A86
monochromatic
#1D1F06 #4C5310 #7B861A #AAB924 #CADA40

Accessibility & contrast

On white

3.99
#7B861A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7B861A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B861A
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B861A#FFFFFF#000000##000000
##7B861A1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#8F8024
Tritanopia (blue-blind)
#837E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b861a;
/* rgb */ color: rgb(123, 134, 26);
/* oklch */ color: oklch(59.1% 0.126 115.6);
Tailwind
colors: {
  custom: {
    50: '#a4a961',
    500: '#7b861a',
    950: '#000000',
  },
}
SCSS
$custom: #7b861a;
$custom-light: #a4a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7b861a",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 26
  },
  "hsl": {
    "h": 66.111,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59149,
    "c": 0.12559,
    "h": 115.6
  },
  "luminance": 0.21336
}

Semantic roles & 50–950 ramp

primary
#7B861A
secondary
#4F42B9
accent
#3DEA4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B861A

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

Preview Lab → · Contrast checker → · Palette generator →

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