#7B9417#7B9417

#7B9417 is a light, vivid yellow-green. Relative luminance 0.255; OKLCH L 62.5% C 0.143 H 121.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7B9417
RGBrgb(123, 148, 23)
HSLhsl(72, 73%, 34%)
HSVhsv(72, 84%, 58%)
CMYKcmyk(16.9%, 0%, 84.5%, 42%)
CIE-LABlab(57.51, -24.96, 56.46)
CIE-LCHlch(57.51, 61.73, 113.85°)
OKLaboklab(62.53% -0.0743 0.1225)
OKLCHoklch(62.53% 0.143 121.2)
XYZxyz(18.9133, 25.4526, 4.7269)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9417 #301794
analogous
#946E17 #7B9417 #3C9417
triadic
#7B9417 #177B94 #94177B
tetradic
#7B9417 #17946E #301794 #94173C
square
#7B9417 #17946E #301794 #94173C
split-complementary
#7B9417 #173C94 #6E1794
monochromatic
#232A07 #4F5F0F #7B9417 #A7C91F #C2E244

Accessibility & contrast

On white

3.45
#7B9417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#7B9417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9417
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9417#FFFFFF#000000##000000
##7B94171.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#9B8A25
Tritanopia (blue-blind)
#828C7E
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #7b9417;
/* rgb */ color: rgb(123, 148, 23);
/* oklch */ color: oklch(62.5% 0.143 121.2);
Tailwind
colors: {
  custom: {
    50: '#a5b362',
    500: '#7b9417',
    950: '#000000',
  },
}
SCSS
$custom: #7b9417;
$custom-light: #a5b362;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9417",
  "rgb": {
    "r": 123,
    "g": 148,
    "b": 23
  },
  "hsl": {
    "h": 72,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.62526,
    "c": 0.14326,
    "h": 121.2
  },
  "luminance": 0.25453
}

Semantic roles & 50–950 ramp

primary
#7B9417
secondary
#5D44C3
accent
#38F05D
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B9417

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

Preview Lab → · Contrast checker → · Palette generator →

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