#7B8A1D#7B8A1D

#7B8A1D is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.1% C 0.129 H 117.5°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7B8A1D
RGBrgb(123, 138, 29)
HSLhsl(68, 65%, 33%)
HSVhsv(68, 79%, 54%)
CMYKcmyk(10.9%, 0%, 79%, 45.9%)
CIE-LABlab(54.53, -19.67, 52.05)
CIE-LCHlch(54.53, 55.64, 110.70°)
OKLaboklab(60.13% -0.0594 0.1141)
OKLCHoklch(60.13% 0.129 117.5)
XYZxyz(17.4791, 22.4768, 4.5798)
Luminance0.2248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A1D #2C1D8A
analogous
#8A621D #7B8A1D #448A1D
triadic
#7B8A1D #1D7B8A #8A1D7B
tetradic
#7B8A1D #1D8A62 #2C1D8A #8A1D44
square
#7B8A1D #1D8A62 #2C1D8A #8A1D44
split-complementary
#7B8A1D #1D448A #621D8A
monochromatic
#212508 #4E5712 #7B8A1D #A8BD28 #C5D949

Accessibility & contrast

On white

3.82
#7B8A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7B8A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A1D
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A1D#FFFFFF#000000##000000
##7B8A1D1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928327
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8a1d;
/* rgb */ color: rgb(123, 138, 29);
/* oklch */ color: oklch(60.1% 0.129 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ac63',
    500: '#7b8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a1d;
$custom-light: #a4ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a1d",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 68.257,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60129,
    "c": 0.12865,
    "h": 117.5
  },
  "luminance": 0.22477
}

Semantic roles & 50–950 ramp

primary
#7B8A1D
secondary
#5848BB
accent
#40E857
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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