#7C8A2A#7C8A2A

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

Color values

HEX#7C8A2A
RGBrgb(124, 138, 42)
HSLhsl(69, 53%, 35%)
HSVhsv(69, 70%, 54%)
CMYKcmyk(10.1%, 0%, 69.6%, 45.9%)
CIE-LABlab(54.69, -18.53, 47.41)
CIE-LCHlch(54.69, 50.91, 111.34°)
OKLaboklab(60.3% -0.055 0.1066)
OKLCHoklch(60.3% 0.12 117.3)
XYZxyz(17.8190, 22.6294, 5.6193)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A2A #382A8A
analogous
#8A682A #7C8A2A #4C8A2A
triadic
#7C8A2A #2A7C8A #8A2A7C
tetradic
#7C8A2A #2A8A68 #382A8A #8A2A4C
square
#7C8A2A #2A8A68 #382A8A #8A2A4C
split-complementary
#7C8A2A #2A4C8A #682A8A
monochromatic
#282C0D #525B1C #7C8A2A #A6B938 #BECF60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A2A#FFFFFF#000000##000000
##7C8A2A1.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)
#93831C
Deuteranopia (green-blind)
#928331
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a2a;
/* rgb */ color: rgb(124, 138, 42);
/* oklch */ color: oklch(60.3% 0.120 117.3);
Tailwind
colors: {
  custom: {
    50: '#a5ac6a',
    500: '#7c8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a2a;
$custom-light: #a5ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a2a",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 68.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60303,
    "c": 0.12,
    "h": 117.3
  },
  "luminance": 0.22629
}

Semantic roles & 50–950 ramp

primary
#7C8A2A
secondary
#685BB4
accent
#4BDD60
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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