#7B802D#7B802D

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

Color values

HEX#7B802D
RGBrgb(123, 128, 45)
HSLhsl(64, 48%, 34%)
HSVhsv(64, 65%, 50%)
CMYKcmyk(3.9%, 0%, 64.8%, 49.8%)
CIE-LABlab(51.65, -13.47, 42.94)
CIE-LCHlch(51.65, 45.01, 107.42°)
OKLaboklab(57.86% -0.0405 0.0977)
OKLCHoklch(57.86% 0.106 112.5)
XYZxyz(16.3616, 19.8391, 5.4495)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B802D #322D80
analogous
#805C2D #7B802D #52802D
triadic
#7B802D #2D7B80 #802D7B
tetradic
#7B802D #2D805C #322D80 #802D52
square
#7B802D #2D805C #322D80 #802D52
split-complementary
#7B802D #2D5280 #5C2D80
monochromatic
#24250D #4F531D #7B802D #A7AD3D #C1C760

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B802D#FFFFFF#000000##000000
##7B802D1.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)
#897A23
Deuteranopia (green-blind)
#8A7C32
Tritanopia (blue-blind)
#83786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b802d;
/* rgb */ color: rgb(123, 128, 45);
/* oklch */ color: oklch(57.9% 0.106 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a46a',
    500: '#7b802d',
    950: '#000000',
  },
}
SCSS
$custom: #7b802d;
$custom-light: #a3a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b802d",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 63.614,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.10579,
    "h": 112.5
  },
  "luminance": 0.19839
}

Semantic roles & 50–950 ramp

primary
#7B802D
secondary
#605BAE
accent
#50D858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B802D

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

Preview Lab → · Contrast checker → · Palette generator →

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