#7B802B#7B802B

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

Color values

HEX#7B802B
RGBrgb(123, 128, 43)
HSLhsl(64, 50%, 34%)
HSVhsv(64, 66%, 50%)
CMYKcmyk(3.9%, 0%, 66.4%, 49.8%)
CIE-LABlab(51.64, -13.61, 43.82)
CIE-LCHlch(51.64, 45.88, 107.26°)
OKLaboklab(57.84% -0.0411 0.0992)
OKLCHoklch(57.84% 0.107 112.5)
XYZxyz(16.3240, 19.8241, 5.2515)
Luminance0.1982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B802B #302B80
analogous
#805A2B #7B802B #50802B
triadic
#7B802B #2B7B80 #802B7B
tetradic
#7B802B #2B805A #302B80 #802B50
square
#7B802B #2B805A #302B80 #802B50
split-complementary
#7B802B #2B5080 #5A2B80
monochromatic
#23240C #4F521C #7B802B #A7AE3A #C2C95D

Accessibility & contrast

On white

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

On black

4.96
#7B802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B802B
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B802B#FFFFFF#000000##000000
##7B802B1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A20
Deuteranopia (green-blind)
#8A7C31
Tritanopia (blue-blind)
#83786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b802b;
/* rgb */ color: rgb(123, 128, 43);
/* oklch */ color: oklch(57.8% 0.107 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a469',
    500: '#7b802b',
    950: '#000000',
  },
}
SCSS
$custom: #7b802b;
$custom-light: #a4a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7b802b",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 63.529,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57839,
    "c": 0.10743,
    "h": 112.5
  },
  "luminance": 0.19824
}

Semantic roles & 50–950 ramp

primary
#7B802B
secondary
#5D58AE
accent
#4FD957
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7B802B

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

Preview Lab → · Contrast checker → · Palette generator →

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