#7B8422#7B8422

#7B8422 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.119 H 114.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7B8422
RGBrgb(123, 132, 34)
HSLhsl(66, 59%, 33%)
HSVhsv(66, 74%, 52%)
CMYKcmyk(6.8%, 0%, 74.2%, 48.2%)
CIE-LABlab(52.76, -16.29, 48.63)
CIE-LCHlch(52.76, 51.29, 108.52°)
OKLaboklab(58.72% -0.0496 0.1078)
OKLCHoklch(58.72% 0.119 114.7)
XYZxyz(16.7088, 20.8293, 4.6533)
Luminance0.2083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8422 #2B2284
analogous
#845C22 #7B8422 #4A8422
triadic
#7B8422 #227B84 #84227B
tetradic
#7B8422 #22845C #2B2284 #84224A
square
#7B8422 #22845C #2B2284 #84224A
split-complementary
#7B8422 #224A84 #5C2284
monochromatic
#202309 #4E5315 #7B8422 #A8B52F #C6D24F

Accessibility & contrast

On white

4.07
#7B8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#7B8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8422
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8422#FFFFFF#000000##000000
##7B84221.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0F
Deuteranopia (green-blind)
#8D7F2A
Tritanopia (blue-blind)
#837C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7b8422;
/* rgb */ color: rgb(123, 132, 34);
/* oklch */ color: oklch(58.7% 0.119 114.7);
Tailwind
colors: {
  custom: {
    50: '#a4a765',
    500: '#7b8422',
    950: '#000000',
  },
}
SCSS
$custom: #7b8422;
$custom-light: #a4a765;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8422",
  "rgb": {
    "r": 123,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 65.51,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58719,
    "c": 0.11868,
    "h": 114.7
  },
  "luminance": 0.20829
}

Semantic roles & 50–950 ramp

primary
#7B8422
secondary
#564DB5
accent
#46E254
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8422

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

Preview Lab → · Contrast checker → · Palette generator →

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