#7B8A1F#7B8A1F

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

Color values

HEX#7B8A1F
RGBrgb(123, 138, 31)
HSLhsl(68, 63%, 33%)
HSVhsv(68, 78%, 54%)
CMYKcmyk(10.9%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.54, -19.58, 51.39)
CIE-LCHlch(54.54, 54.99, 110.86°)
OKLaboklab(60.14% -0.0589 0.1131)
OKLCHoklch(60.14% 0.128 117.5)
XYZxyz(17.5046, 22.4870, 4.7143)
Luminance0.2249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A1F #2E1F8A
analogous
#8A631F #7B8A1F #458A1F
triadic
#7B8A1F #1F7B8A #8A1F7B
tetradic
#7B8A1F #1F8A63 #2E1F8A #8A1F45
square
#7B8A1F #1F8A63 #2E1F8A #8A1F45
split-complementary
#7B8A1F #1F458A #631F8A
monochromatic
#222609 #4E5814 #7B8A1F #A8BC2A #C3D74C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A1F#FFFFFF#000000##000000
##7B8A1F1.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)
#948205
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8a1f;
/* rgb */ color: rgb(123, 138, 31);
/* oklch */ color: oklch(60.1% 0.128 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ac64',
    500: '#7b8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a1f;
$custom-light: #a4ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a1f",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 68.411,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60141,
    "c": 0.12755,
    "h": 117.5
  },
  "luminance": 0.22487
}

Semantic roles & 50–950 ramp

primary
#7B8A1F
secondary
#5B4BBA
accent
#41E659
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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