#7B8B1B#7B8B1B

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

Color values

HEX#7B8B1B
RGBrgb(123, 139, 27)
HSLhsl(69, 67%, 33%)
HSVhsv(69, 81%, 55%)
CMYKcmyk(11.5%, 0%, 80.6%, 45.5%)
CIE-LABlab(54.82, -20.27, 52.95)
CIE-LCHlch(54.82, 56.69, 110.95°)
OKLaboklab(60.36% -0.0612 0.1157)
OKLCHoklch(60.36% 0.131 117.9)
XYZxyz(17.5993, 22.7555, 4.5018)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8B1B #2B1B8B
analogous
#8B631B #7B8B1B #438B1B
triadic
#7B8B1B #1B7B8B #8B1B7B
tetradic
#7B8B1B #1B8B63 #2B1B8B #8B1B43
square
#7B8B1B #1B8B63 #2B1B8B #8B1B43
split-complementary
#7B8B1B #1B438B #631B8B
monochromatic
#202507 #4E5811 #7B8B1B #A8BE25 #C6DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8B1B#FFFFFF#000000##000000
##7B8B1B1.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)
#938426
Tritanopia (blue-blind)
#838376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8b1b;
/* rgb */ color: rgb(123, 139, 27);
/* oklch */ color: oklch(60.4% 0.131 117.9);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7b8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #7b8b1b;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8b1b",
  "rgb": {
    "r": 123,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 68.571,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60359,
    "c": 0.13087,
    "h": 117.9
  },
  "luminance": 0.22755
}

Semantic roles & 50–950 ramp

primary
#7B8B1B
secondary
#5645BC
accent
#3DEA56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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