#7C7C2F#7C7C2F

#7C7C2F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.099 H 109.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7C7C2F
RGBrgb(124, 124, 47)
HSLhsl(60, 45%, 34%)
HSVhsv(60, 62%, 49%)
CMYKcmyk(0%, 0%, 62.1%, 51.4%)
CIE-LABlab(50.58, -10.70, 40.89)
CIE-LCHlch(50.58, 42.26, 104.67°)
OKLaboklab(57.03% -0.0325 0.0936)
OKLCHoklch(57.03% 0.099 109.2)
XYZxyz(16.0334, 18.9061, 5.4934)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7C2F #2F2F7C
analogous
#7C552F #7C7C2F #557C2F
triadic
#7C7C2F #2F7C7C #7C2F7C
tetradic
#7C7C2F #2F7C55 #2F2F7C #7C2F55
square
#7C7C2F #2F7C55 #2F2F7C #7C2F55
split-complementary
#7C7C2F #2F557C #552F7C
monochromatic
#23230D #50501E #7C7C2F #A8A840 #C3C362

Accessibility & contrast

On white

4.39
#7C7C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7C7C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7C2F
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7C2F#FFFFFF#000000##000000
##7C7C2F1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#84746C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c7c2f;
/* rgb */ color: rgb(124, 124, 47);
/* oklch */ color: oklch(57.0% 0.099 109.2);
Tailwind
colors: {
  custom: {
    50: '#a4a16b',
    500: '#7c7c2f',
    950: '#000000',
  },
}
SCSS
$custom: #7c7c2f;
$custom-light: #a4a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7c2f",
  "rgb": {
    "r": 124,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57025,
    "c": 0.09913,
    "h": 109.2
  },
  "luminance": 0.18906
}

Semantic roles & 50–950 ramp

primary
#7C7C2F
secondary
#5C5CAA
accent
#53D553
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #7C7C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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