#7B8D1D#7B8D1D

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

Color values

HEX#7B8D1D
RGBrgb(123, 141, 29)
HSLhsl(70, 66%, 33%)
HSVhsv(70, 79%, 55%)
CMYKcmyk(12.8%, 0%, 79.4%, 44.7%)
CIE-LABlab(55.43, -21.21, 52.87)
CIE-LCHlch(55.43, 56.97, 111.86°)
OKLaboklab(60.85% -0.0636 0.1159)
OKLCHoklch(60.85% 0.132 118.8)
XYZxyz(17.9154, 23.3496, 4.7253)
Luminance0.2335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8D1D #2F1D8D
analogous
#8D671D #7B8D1D #438D1D
triadic
#7B8D1D #1D7B8D #8D1D7B
tetradic
#7B8D1D #1D8D67 #2F1D8D #8D1D43
square
#7B8D1D #1D8D67 #2F1D8D #8D1D43
split-complementary
#7B8D1D #1D438D #671D8D
monochromatic
#222708 #4F5A13 #7B8D1D #A7C027 #C3DA4B

Accessibility & contrast

On white

3.70
#7B8D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8D1D#FFFFFF#000000##000000
##7B8D1D1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8d1d;
/* rgb */ color: rgb(123, 141, 29);
/* oklch */ color: oklch(60.9% 0.132 118.8);
Tailwind
colors: {
  custom: {
    50: '#a4ae63',
    500: '#7b8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #7b8d1d;
$custom-light: #a4ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8d1d",
  "rgb": {
    "r": 123,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 69.643,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60854,
    "c": 0.13219,
    "h": 118.8
  },
  "luminance": 0.23349
}

Semantic roles & 50–950 ramp

primary
#7B8D1D
secondary
#5C4ABC
accent
#3FE95A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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