#7C7E2F#7C7E2F

#7C7E2F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.101 H 110.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7C7E2F
RGBrgb(124, 126, 47)
HSLhsl(62, 46%, 34%)
HSVhsv(62, 63%, 49%)
CMYKcmyk(1.6%, 0%, 62.7%, 50.6%)
CIE-LABlab(51.17, -11.79, 41.53)
CIE-LCHlch(51.17, 43.17, 105.86°)
OKLaboklab(57.5% -0.0356 0.095)
OKLCHoklch(57.5% 0.101 110.6)
XYZxyz(16.2866, 19.4124, 5.5778)
Luminance0.1941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7E2F #312F7E
analogous
#7E592F #7C7E2F #557E2F
triadic
#7C7E2F #2F7C7E #7E2F7C
tetradic
#7C7E2F #2F7E59 #312F7E #7E2F55
square
#7C7E2F #2F7E59 #312F7E #7E2F55
split-complementary
#7C7E2F #2F557E #592F7E
monochromatic
#24250E #50511E #7C7E2F #A8AB40 #C2C563

Accessibility & contrast

On white

4.30
#7C7E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7C7E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7E2F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7E2F#FFFFFF#000000##000000
##7C7E2F1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#84766D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7c7e2f;
/* rgb */ color: rgb(124, 126, 47);
/* oklch */ color: oklch(57.5% 0.101 110.6);
Tailwind
colors: {
  custom: {
    50: '#a4a36b',
    500: '#7c7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #7c7e2f;
$custom-light: #a4a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7e2f",
  "rgb": {
    "r": 124,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 61.519,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57495,
    "c": 0.10146,
    "h": 110.6
  },
  "luminance": 0.19412
}

Semantic roles & 50–950 ramp

primary
#7C7E2F
secondary
#5F5DAC
accent
#52D556
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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