#7A8F1F#7A8F1F

#7A8F1F is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.3% C 0.134 H 120.1°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7A8F1F
RGBrgb(122, 143, 31)
HSLhsl(71, 64%, 34%)
HSVhsv(71, 78%, 56%)
CMYKcmyk(14.7%, 0%, 78.3%, 43.9%)
CIE-LABlab(55.97, -22.57, 52.69)
CIE-LCHlch(55.97, 57.32, 113.19°)
OKLaboklab(61.27% -0.0671 0.1159)
OKLCHoklch(61.27% 0.134 120.1)
XYZxyz(18.0962, 23.8815, 4.9523)
Luminance0.2388 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8F1F #341F8F
analogous
#8F6C1F #7A8F1F #428F1F
triadic
#7A8F1F #1F7A8F #8F1F7A
tetradic
#7A8F1F #1F8F6C #341F8F #8F1F42
square
#7A8F1F #1F8F6C #341F8F #8F1F42
split-complementary
#7A8F1F #1F428F #6C1F8F
monochromatic
#242A09 #4F5D14 #7A8F1F #A5C12A #BFD94F

Accessibility & contrast

On white

3.64
#7A8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7A8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8F1F
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8F1F#FFFFFF#000000##000000
##7A8F1F1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988601
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#81877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7a8f1f;
/* rgb */ color: rgb(122, 143, 31);
/* oklch */ color: oklch(61.3% 0.134 120.1);
Tailwind
colors: {
  custom: {
    50: '#a4af65',
    500: '#7a8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #7a8f1f;
$custom-light: #a4af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8f1f",
  "rgb": {
    "r": 122,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 71.25,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.13393,
    "h": 120.1
  },
  "luminance": 0.23881
}

Semantic roles & 50–950 ramp

primary
#7A8F1F
secondary
#634EBC
accent
#40E760
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7A8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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