#7C8A1C#7C8A1C

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

Color values

HEX#7C8A1C
RGBrgb(124, 138, 28)
HSLhsl(68, 66%, 33%)
HSVhsv(68, 80%, 54%)
CMYKcmyk(10.1%, 0%, 79.7%, 45.9%)
CIE-LABlab(54.60, -19.27, 52.46)
CIE-LCHlch(54.60, 55.89, 110.17°)
OKLaboklab(60.21% -0.0584 0.1148)
OKLCHoklch(60.21% 0.129 117)
XYZxyz(17.6107, 22.5461, 4.5225)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A1C #2A1C8A
analogous
#8A611C #7C8A1C #458A1C
triadic
#7C8A1C #1C7C8A #8A1C7C
tetradic
#7C8A1C #1C8A61 #2A1C8A #8A1C45
square
#7C8A1C #1C8A61 #2A1C8A #8A1C45
split-complementary
#7C8A1C #1C458A #611C8A
monochromatic
#212407 #4E5712 #7C8A1C #AABD26 #C7DA47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A1C#FFFFFF#000000##000000
##7C8A1C1.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)
#948200
Deuteranopia (green-blind)
#938326
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a1c;
/* rgb */ color: rgb(124, 138, 28);
/* oklch */ color: oklch(60.2% 0.129 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac63',
    500: '#7c8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a1c;
$custom-light: #a5ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a1c",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 67.636,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60205,
    "c": 0.12881,
    "h": 117
  },
  "luminance": 0.22546
}

Semantic roles & 50–950 ramp

primary
#7C8A1C
secondary
#5546BB
accent
#3FE954
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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