#7B8B1D#7B8B1D

#7B8B1D is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.130 H 117.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7B8B1D
RGBrgb(123, 139, 29)
HSLhsl(69, 65%, 33%)
HSVhsv(69, 79%, 55%)
CMYKcmyk(11.5%, 0%, 79.1%, 45.5%)
CIE-LABlab(54.83, -20.19, 52.32)
CIE-LCHlch(54.83, 56.08, 111.10°)
OKLaboklab(60.37% -0.0608 0.1147)
OKLCHoklch(60.37% 0.13 117.9)
XYZxyz(17.6232, 22.7651, 4.6279)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8B1D #2D1D8B
analogous
#8B641D #7B8B1D #448B1D
triadic
#7B8B1D #1D7B8B #8B1D7B
tetradic
#7B8B1D #1D8B64 #2D1D8B #8B1D44
square
#7B8B1D #1D8B64 #2D1D8B #8B1D44
split-complementary
#7B8B1D #1D448B #641D8B
monochromatic
#212608 #4E5812 #7B8B1D #A8BE28 #C4D949

Accessibility & contrast

On white

3.78
#7B8B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7B8B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8B1D
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8B1D#FFFFFF#000000##000000
##7B8B1D1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#838377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8b1d;
/* rgb */ color: rgb(123, 139, 29);
/* oklch */ color: oklch(60.4% 0.130 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac63',
    500: '#7b8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #7b8b1d;
$custom-light: #a4ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8b1d",
  "rgb": {
    "r": 123,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 68.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60371,
    "c": 0.12983,
    "h": 117.9
  },
  "luminance": 0.22765
}

Semantic roles & 50–950 ramp

primary
#7B8B1D
secondary
#5949BB
accent
#3FE858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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