#7B8914#7B8914

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

Color values

HEX#7B8914
RGBrgb(123, 137, 20)
HSLhsl(67, 75%, 31%)
HSVhsv(67, 85%, 54%)
CMYKcmyk(10.2%, 0%, 85.4%, 46.3%)
CIE-LABlab(54.19, -19.50, 54.37)
CIE-LCHlch(54.19, 57.76, 109.73°)
OKLaboklab(59.84% -0.0596 0.1175)
OKLCHoklch(59.84% 0.132 116.9)
XYZxyz(17.2408, 22.1530, 4.0294)
Luminance0.2215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8914 #221489
analogous
#895C14 #7B8914 #418914
triadic
#7B8914 #147B89 #89147B
tetradic
#7B8914 #14895C #221489 #891441
square
#7B8914 #14895C #221489 #891441
split-complementary
#7B8914 #144189 #5C1489
monochromatic
#1B1E04 #4B540C #7B8914 #ABBE1C #CDE236

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8914#FFFFFF#000000##000000
##7B89141.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)
#928221
Tritanopia (blue-blind)
#838174
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8914;
/* rgb */ color: rgb(123, 137, 20);
/* oklch */ color: oklch(59.8% 0.132 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ab5f',
    500: '#7b8914',
    950: '#000000',
  },
}
SCSS
$custom: #7b8914;
$custom-light: #a5ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8914",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 20
  },
  "hsl": {
    "h": 67.179,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59843,
    "c": 0.13172,
    "h": 116.9
  },
  "luminance": 0.22153
}

Semantic roles & 50–950 ramp

primary
#7B8914
secondary
#4B3CBD
accent
#37F14D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7B8914

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

Preview Lab → · Contrast checker → · Palette generator →

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