#7C8A1E#7C8A1E

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

Color values

HEX#7C8A1E
RGBrgb(124, 138, 30)
HSLhsl(68, 64%, 33%)
HSVhsv(68, 78%, 54%)
CMYKcmyk(10.1%, 0%, 78.3%, 45.9%)
CIE-LABlab(54.61, -19.18, 51.82)
CIE-LCHlch(54.61, 55.26, 110.31°)
OKLaboklab(60.22% -0.058 0.1138)
OKLCHoklch(60.22% 0.128 117)
XYZxyz(17.6355, 22.5560, 4.6528)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A1E #2C1E8A
analogous
#8A621E #7C8A1E #468A1E
triadic
#7C8A1E #1E7C8A #8A1E7C
tetradic
#7C8A1E #1E8A62 #2C1E8A #8A1E46
square
#7C8A1E #1E8A62 #2C1E8A #8A1E46
split-complementary
#7C8A1E #1E468A #621E8A
monochromatic
#222508 #4F5813 #7C8A1E #A9BC29 #C5D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A1E#FFFFFF#000000##000000
##7C8A1E1.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)
#948202
Deuteranopia (green-blind)
#938328
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a1e;
/* rgb */ color: rgb(124, 138, 30);
/* oklch */ color: oklch(60.2% 0.128 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac63',
    500: '#7c8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a1e;
$custom-light: #a5ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a1e",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 67.778,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60217,
    "c": 0.12774,
    "h": 117
  },
  "luminance": 0.22556
}

Semantic roles & 50–950 ramp

primary
#7C8A1E
secondary
#584ABA
accent
#41E756
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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