#7B8922#7B8922

#7B8922 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.125 H 117.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7B8922
RGBrgb(123, 137, 34)
HSLhsl(68, 60%, 34%)
HSVhsv(68, 75%, 54%)
CMYKcmyk(10.2%, 0%, 75.2%, 46.3%)
CIE-LABlab(54.26, -18.91, 50.07)
CIE-LCHlch(54.26, 53.52, 110.69°)
OKLaboklab(59.92% -0.0568 0.1109)
OKLCHoklch(59.92% 0.125 117.1)
XYZxyz(17.4032, 22.2180, 4.8848)
Luminance0.2222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8922 #302289
analogous
#896322 #7B8922 #478922
triadic
#7B8922 #227B89 #89227B
tetradic
#7B8922 #228963 #302289 #892247
square
#7B8922 #228963 #302289 #892247
split-complementary
#7B8922 #224789 #632289
monochromatic
#23270A #4F5816 #7B8922 #A7BA2E #C2D451

Accessibility & contrast

On white

3.86
#7B8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#7B8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8922
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8922#FFFFFF#000000##000000
##7B89221.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#93810D
Deuteranopia (green-blind)
#91822B
Tritanopia (blue-blind)
#838175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8922;
/* rgb */ color: rgb(123, 137, 34);
/* oklch */ color: oklch(59.9% 0.125 117.1);
Tailwind
colors: {
  custom: {
    50: '#a4ab65',
    500: '#7b8922',
    950: '#000000',
  },
}
SCSS
$custom: #7b8922;
$custom-light: #a4ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8922",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 68.155,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5992,
    "c": 0.12458,
    "h": 117.1
  },
  "luminance": 0.22218
}

Semantic roles & 50–950 ramp

primary
#7B8922
secondary
#5D4FB8
accent
#44E35A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8922

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

Preview Lab → · Contrast checker → · Palette generator →

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