#7C8A2C#7C8A2C

#7C8A2C is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.118 H 117.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7C8A2C
RGBrgb(124, 138, 44)
HSLhsl(69, 52%, 36%)
HSVhsv(69, 68%, 54%)
CMYKcmyk(10.1%, 0%, 68.1%, 45.9%)
CIE-LABlab(54.70, -18.40, 46.60)
CIE-LCHlch(54.70, 50.10, 111.54°)
OKLaboklab(60.32% -0.0545 0.1052)
OKLCHoklch(60.32% 0.119 117.4)
XYZxyz(17.8557, 22.6441, 5.8125)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A2C #3A2C8A
analogous
#8A692C #7C8A2C #4D8A2C
triadic
#7C8A2C #2C7C8A #8A2C7C
tetradic
#7C8A2C #2C8A69 #3A2C8A #8A2C4D
square
#7C8A2C #2C8A69 #3A2C8A #8A2C4D
split-complementary
#7C8A2C #2C4D8A #692C8A
monochromatic
#292D0E #525C1D #7C8A2C #A6B83B #BDCD63

Accessibility & contrast

On white

3.80
#7C8A2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7C8A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A2C
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A2C#FFFFFF#000000##000000
##7C8A2C1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93831F
Deuteranopia (green-blind)
#928333
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a2c;
/* rgb */ color: rgb(124, 138, 44);
/* oklch */ color: oklch(60.3% 0.118 117.4);
Tailwind
colors: {
  custom: {
    50: '#a4ac6b',
    500: '#7c8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a2c;
$custom-light: #a4ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a2c",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 68.936,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6032,
    "c": 0.1185,
    "h": 117.4
  },
  "luminance": 0.22644
}

Semantic roles & 50–950 ramp

primary
#7C8A2C
secondary
#6B5EB4
accent
#4DDB62
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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