#7C8A1F#7C8A1F

#7C8A1F is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.127 H 117.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7C8A1F
RGBrgb(124, 138, 31)
HSLhsl(68, 63%, 33%)
HSVhsv(68, 78%, 54%)
CMYKcmyk(10.1%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.62, -19.14, 51.49)
CIE-LCHlch(54.62, 54.93, 110.39°)
OKLaboklab(60.22% -0.0578 0.1133)
OKLCHoklch(60.22% 0.127 117)
XYZxyz(17.6484, 22.5612, 4.7211)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A1F #2D1F8A
analogous
#8A621F #7C8A1F #478A1F
triadic
#7C8A1F #1F7C8A #8A1F7C
tetradic
#7C8A1F #1F8A62 #2D1F8A #8A1F47
square
#7C8A1F #1F8A62 #2D1F8A #8A1F47
split-complementary
#7C8A1F #1F478A #621F8A
monochromatic
#222609 #4F5814 #7C8A1F #A9BC2A #C5D74C

Accessibility & contrast

On white

3.81
#7C8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7C8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A1F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A1F#FFFFFF#000000##000000
##7C8A1F1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948205
Deuteranopia (green-blind)
#938329
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a1f;
/* rgb */ color: rgb(124, 138, 31);
/* oklch */ color: oklch(60.2% 0.127 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac64',
    500: '#7c8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a1f;
$custom-light: #a5ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a1f",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 67.85,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60223,
    "c": 0.12717,
    "h": 117
  },
  "luminance": 0.22561
}

Semantic roles & 50–950 ramp

primary
#7C8A1F
secondary
#5A4BBA
accent
#41E657
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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