#7B8917#7B8917

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

Color values

HEX#7B8917
RGBrgb(123, 137, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 54%)
CMYKcmyk(10.2%, 0%, 83.2%, 46.3%)
CIE-LABlab(54.20, -19.40, 53.57)
CIE-LCHlch(54.20, 56.98, 109.90°)
OKLaboklab(59.86% -0.0591 0.1163)
OKLCHoklch(59.86% 0.13 116.9)
XYZxyz(17.2692, 22.1644, 4.1789)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8917 #251789
analogous
#895E17 #7B8917 #428917
triadic
#7B8917 #177B89 #89177B
tetradic
#7B8917 #17895E #251789 #891742
square
#7B8917 #17895E #251789 #891742
split-complementary
#7B8917 #174289 #5E1789
monochromatic
#1D2005 #4C550E #7B8917 #AABD20 #CADE3C

Accessibility & contrast

On white

3.87
#7B8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7B8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8917
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8917#FFFFFF#000000##000000
##7B89171.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#838175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8917;
/* rgb */ color: rgb(123, 137, 23);
/* oklch */ color: oklch(59.9% 0.130 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ab60',
    500: '#7b8917',
    950: '#000000',
  },
}
SCSS
$custom: #7b8917;
$custom-light: #a5ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8917",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 67.368,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59856,
    "c": 0.13045,
    "h": 116.9
  },
  "luminance": 0.22164
}

Semantic roles & 50–950 ramp

primary
#7B8917
secondary
#4F3FBD
accent
#3AEE50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8917

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

Preview Lab → · Contrast checker → · Palette generator →

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