#7C8A2B#7C8A2B

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

Color values

HEX#7C8A2B
RGBrgb(124, 138, 43)
HSLhsl(69, 52%, 35%)
HSVhsv(69, 69%, 54%)
CMYKcmyk(10.1%, 0%, 68.8%, 45.9%)
CIE-LABlab(54.70, -18.46, 47.01)
CIE-LCHlch(54.70, 50.50, 111.44°)
OKLaboklab(60.31% -0.0548 0.1059)
OKLCHoklch(60.31% 0.119 117.3)
XYZxyz(17.8371, 22.6367, 5.7147)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A2B #392B8A
analogous
#8A682B #7C8A2B #4C8A2B
triadic
#7C8A2B #2B7C8A #8A2B7C
tetradic
#7C8A2B #2B8A68 #392B8A #8A2B4C
square
#7C8A2B #2B8A68 #392B8A #8A2B4C
split-complementary
#7C8A2B #2B4C8A #682B8A
monochromatic
#282D0E #525B1C #7C8A2B #A6B93A #BECE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A2B#FFFFFF#000000##000000
##7C8A2B1.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)
#93831D
Deuteranopia (green-blind)
#928332
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a2b;
/* rgb */ color: rgb(124, 138, 43);
/* oklch */ color: oklch(60.3% 0.119 117.3);
Tailwind
colors: {
  custom: {
    50: '#a5ac6a',
    500: '#7c8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a2b;
$custom-light: #a5ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a2b",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 68.842,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60311,
    "c": 0.11926,
    "h": 117.3
  },
  "luminance": 0.22636
}

Semantic roles & 50–950 ramp

primary
#7C8A2B
secondary
#6A5DB4
accent
#4CDC61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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