#7B8022#7B8022

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

Color values

HEX#7B8022
RGBrgb(123, 128, 34)
HSLhsl(63, 58%, 32%)
HSVhsv(63, 73%, 50%)
CMYKcmyk(3.9%, 0%, 73.4%, 49.8%)
CIE-LABlab(51.57, -14.16, 47.48)
CIE-LCHlch(51.57, 49.54, 106.61°)
OKLaboklab(57.76% -0.0436 0.1054)
OKLCHoklch(57.76% 0.114 112.5)
XYZxyz(16.1768, 19.7652, 4.4760)
Luminance0.1976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8022 #272280
analogous
#805622 #7B8022 #4C8022
triadic
#7B8022 #227B80 #80227B
tetradic
#7B8022 #228056 #272280 #80224C
square
#7B8022 #228056 #272280 #80224C
split-complementary
#7B8022 #224C80 #562280
monochromatic
#1E1F08 #4D5015 #7B8022 #A9B02F #C9D04D

Accessibility & contrast

On white

4.24
#7B8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#7B8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8022
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8022#FFFFFF#000000##000000
##7B80221.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A11
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#84786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b8022;
/* rgb */ color: rgb(123, 128, 34);
/* oklch */ color: oklch(57.8% 0.114 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a464',
    500: '#7b8022',
    950: '#000000',
  },
}
SCSS
$custom: #7b8022;
$custom-light: #a4a464;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8022",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 63.191,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57764,
    "c": 0.11407,
    "h": 112.5
  },
  "luminance": 0.19765
}

Semantic roles & 50–950 ramp

primary
#7B8022
secondary
#514BB2
accent
#47E14F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8022

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

Preview Lab → · Contrast checker → · Palette generator →

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