#7A8A1F#7A8A1F

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

Color values

HEX#7A8A1F
RGBrgb(122, 138, 31)
HSLhsl(69, 63%, 33%)
HSVhsv(69, 78%, 54%)
CMYKcmyk(11.6%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.46, -20.02, 51.29)
CIE-LCHlch(54.46, 55.06, 111.32°)
OKLaboklab(60.06% -0.0601 0.1129)
OKLCHoklch(60.06% 0.128 118)
XYZxyz(17.3622, 22.4136, 4.7077)
Luminance0.2241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A1F #2F1F8A
analogous
#8A641F #7A8A1F #448A1F
triadic
#7A8A1F #1F7A8A #8A1F7A
tetradic
#7A8A1F #1F8A64 #2F1F8A #8A1F44
square
#7A8A1F #1F8A64 #2F1F8A #8A1F44
split-complementary
#7A8A1F #1F448A #641F8A
monochromatic
#222609 #4E5814 #7A8A1F #A6BC2A #C2D74C

Accessibility & contrast

On white

3.83
#7A8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7A8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A1F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A1F#FFFFFF#000000##000000
##7A8A1F1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948205
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#828276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7a8a1f;
/* rgb */ color: rgb(122, 138, 31);
/* oklch */ color: oklch(60.1% 0.128 118.0);
Tailwind
colors: {
  custom: {
    50: '#a4ac64',
    500: '#7a8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a1f;
$custom-light: #a4ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a1f",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 68.972,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.6006,
    "c": 0.12793,
    "h": 118
  },
  "luminance": 0.22413
}

Semantic roles & 50–950 ramp

primary
#7A8A1F
secondary
#5C4BBA
accent
#41E65A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7A8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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