#7B8D1B#7B8D1B

#7B8D1B is a mid, vivid yellow. Relative luminance 0.233; OKLCH L 60.8% C 0.133 H 118.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#7B8D1B
RGBrgb(123, 141, 27)
HSLhsl(69, 68%, 33%)
HSVhsv(69, 81%, 55%)
CMYKcmyk(12.8%, 0%, 80.9%, 44.7%)
CIE-LABlab(55.42, -21.29, 53.49)
CIE-LCHlch(55.42, 57.57, 111.71°)
OKLaboklab(60.84% -0.064 0.1168)
OKLCHoklch(60.84% 0.133 118.7)
XYZxyz(17.8915, 23.3400, 4.5992)
Luminance0.2334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8D1B #2D1B8D
analogous
#8D661B #7B8D1B #428D1B
triadic
#7B8D1B #1B7B8D #8D1B7B
tetradic
#7B8D1B #1B8D66 #2D1B8D #8D1B42
square
#7B8D1B #1B8D66 #2D1B8D #8D1B42
split-complementary
#7B8D1B #1B428D #661B8D
monochromatic
#212607 #4E5A11 #7B8D1B #A8C025 #C4DC47

Accessibility & contrast

On white

3.71
#7B8D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#7B8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8D1B
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8D1B#FFFFFF#000000##000000
##7B8D1B1.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#838578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8d1b;
/* rgb */ color: rgb(123, 141, 27);
/* oklch */ color: oklch(60.8% 0.133 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5ae63',
    500: '#7b8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #7b8d1b;
$custom-light: #a5ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8d1b",
  "rgb": {
    "r": 123,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 69.474,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60843,
    "c": 0.13321,
    "h": 118.7
  },
  "luminance": 0.2334
}

Semantic roles & 50–950 ramp

primary
#7B8D1B
secondary
#5946BD
accent
#3DEB58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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