#7B8928#7B8928

#7B8928 is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.121 H 117.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7B8928
RGBrgb(123, 137, 40)
HSLhsl(69, 55%, 35%)
HSVhsv(69, 71%, 54%)
CMYKcmyk(10.2%, 0%, 70.8%, 46.3%)
CIE-LABlab(54.30, -18.57, 47.81)
CIE-LCHlch(54.30, 51.29, 111.23°)
OKLaboklab(59.96% -0.0553 0.1072)
OKLCHoklch(59.96% 0.121 117.3)
XYZxyz(17.4974, 22.2557, 5.3811)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8928 #362889
analogous
#896728 #7B8928 #4A8928
triadic
#7B8928 #287B89 #89287B
tetradic
#7B8928 #288967 #362889 #89284A
square
#7B8928 #288967 #362889 #89284A
split-complementary
#7B8928 #284A89 #672889
monochromatic
#262A0C #505A1A #7B8928 #A6B836 #BFCF5C

Accessibility & contrast

On white

3.85
#7B8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#7B8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8928
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8928#FFFFFF#000000##000000
##7B89281.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928219
Deuteranopia (green-blind)
#91822F
Tritanopia (blue-blind)
#838176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8928;
/* rgb */ color: rgb(123, 137, 40);
/* oklch */ color: oklch(60.0% 0.121 117.3);
Tailwind
colors: {
  custom: {
    50: '#a4ab68',
    500: '#7b8928',
    950: '#000000',
  },
}
SCSS
$custom: #7b8928;
$custom-light: #a4ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8928",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 68.66,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59964,
    "c": 0.12059,
    "h": 117.3
  },
  "luminance": 0.22255
}

Semantic roles & 50–950 ramp

primary
#7B8928
secondary
#6558B5
accent
#4ADE5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #7B8928

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

Preview Lab → · Contrast checker → · Palette generator →

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