#7B802C#7B802C

#7B802C 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.97:1 contrast (WCAG AA passes).

Color values

HEX#7B802C
RGBrgb(123, 128, 44)
HSLhsl(64, 49%, 34%)
HSVhsv(64, 66%, 50%)
CMYKcmyk(3.9%, 0%, 65.6%, 49.8%)
CIE-LABlab(51.65, -13.54, 43.38)
CIE-LCHlch(51.65, 45.45, 107.34°)
OKLaboklab(57.85% -0.0408 0.0985)
OKLCHoklch(57.85% 0.107 112.5)
XYZxyz(16.3426, 19.8315, 5.3493)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B802C #312C80
analogous
#805B2C #7B802C #51802C
triadic
#7B802C #2C7B80 #802C7B
tetradic
#7B802C #2C805B #312C80 #802C51
square
#7B802C #2C805B #312C80 #802C51
split-complementary
#7B802C #2C5180 #5B2C80
monochromatic
#23250D #4F521C #7B802C #A7AE3C #C2C85F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7b802c;
/* rgb */ color: rgb(123, 128, 44);
/* oklch */ color: oklch(57.8% 0.107 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a46a',
    500: '#7b802c',
    950: '#000000',
  },
}
SCSS
$custom: #7b802c;
$custom-light: #a4a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b802c",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 63.571,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57849,
    "c": 0.10662,
    "h": 112.5
  },
  "luminance": 0.19831
}

Semantic roles & 50–950 ramp

primary
#7B802C
secondary
#5F5AAE
accent
#4FD858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B802C

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

Preview Lab → · Contrast checker → · Palette generator →

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