#7B802E#7B802E

#7B802E is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.105 H 112.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7B802E
RGBrgb(123, 128, 46)
HSLhsl(64, 47%, 34%)
HSVhsv(64, 64%, 50%)
CMYKcmyk(3.9%, 0%, 64.1%, 49.8%)
CIE-LABlab(51.66, -13.40, 42.50)
CIE-LCHlch(51.66, 44.56, 107.50°)
OKLaboklab(57.87% -0.0402 0.0969)
OKLCHoklch(57.87% 0.105 112.5)
XYZxyz(16.3811, 19.8469, 5.5521)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B802E #332E80
analogous
#805C2E #7B802E #52802E
triadic
#7B802E #2E7B80 #802E7B
tetradic
#7B802E #2E805C #332E80 #802E52
square
#7B802E #2E805C #332E80 #802E52
split-complementary
#7B802E #2E5280 #5C2E80
monochromatic
#24260E #50531E #7B802E #A6AD3E #C0C762

Accessibility & contrast

On white

4.23
#7B802E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7B802E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B802E
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B802E#FFFFFF#000000##000000
##7B802E1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A24
Deuteranopia (green-blind)
#8A7C33
Tritanopia (blue-blind)
#83786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b802e;
/* rgb */ color: rgb(123, 128, 46);
/* oklch */ color: oklch(57.9% 0.105 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a46b',
    500: '#7b802e',
    950: '#000000',
  },
}
SCSS
$custom: #7b802e;
$custom-light: #a3a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b802e",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 63.659,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57868,
    "c": 0.10493,
    "h": 112.5
  },
  "luminance": 0.19847
}

Semantic roles & 50–950 ramp

primary
#7B802E
secondary
#625DAD
accent
#51D759
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B802E

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

Preview Lab → · Contrast checker → · Palette generator →

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