#7B8918#7B8918

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

Color values

HEX#7B8918
RGBrgb(123, 137, 24)
HSLhsl(67, 70%, 32%)
HSVhsv(67, 82%, 54%)
CMYKcmyk(10.2%, 0%, 82.5%, 46.3%)
CIE-LABlab(54.21, -19.36, 53.29)
CIE-LCHlch(54.21, 56.70, 109.97°)
OKLaboklab(59.86% -0.0589 0.1159)
OKLCHoklch(59.86% 0.13 117)
XYZxyz(17.2794, 22.1684, 4.2326)
Luminance0.2217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8918 #261889
analogous
#895F18 #7B8918 #438918
triadic
#7B8918 #187B89 #89187B
tetradic
#7B8918 #18895F #261889 #891843
square
#7B8918 #18895F #261889 #891843
split-complementary
#7B8918 #184389 #5F1889
monochromatic
#1D2106 #4C550F #7B8918 #AABD21 #CADD3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8918#FFFFFF#000000##000000
##7B89181.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8918;
/* rgb */ color: rgb(123, 137, 24);
/* oklch */ color: oklch(59.9% 0.130 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ab61',
    500: '#7b8918',
    950: '#000000',
  },
}
SCSS
$custom: #7b8918;
$custom-light: #a5ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8918",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 67.434,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59861,
    "c": 0.13,
    "h": 117
  },
  "luminance": 0.22168
}

Semantic roles & 50–950 ramp

primary
#7B8918
secondary
#5040BD
accent
#3BED51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8918

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

Preview Lab → · Contrast checker → · Palette generator →

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