#7C8223#7C8223

#7C8223 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.3% C 0.115 H 113.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7C8223
RGBrgb(124, 130, 35)
HSLhsl(64, 58%, 32%)
HSVhsv(64, 73%, 51%)
CMYKcmyk(4.6%, 0%, 73.1%, 49%)
CIE-LABlab(52.26, -14.73, 47.79)
CIE-LCHlch(52.26, 50.00, 107.13°)
OKLaboklab(58.34% -0.0452 0.1062)
OKLCHoklch(58.34% 0.115 113)
XYZxyz(16.5987, 20.3721, 4.6476)
Luminance0.2037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8223 #292382
analogous
#825823 #7C8223 #4D8223
triadic
#7C8223 #237C82 #82237C
tetradic
#7C8223 #238258 #292382 #82234D
square
#7C8223 #238258 #292382 #82234D
split-complementary
#7C8223 #234D82 #582382
monochromatic
#202209 #4E5216 #7C8223 #AAB230 #C8D050

Accessibility & contrast

On white

4.14
#7C8223 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7C8223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8223
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8223#FFFFFF#000000##000000
##7C82231.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C12
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8223;
/* rgb */ color: rgb(124, 130, 35);
/* oklch */ color: oklch(58.3% 0.115 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a665',
    500: '#7c8223',
    950: '#000000',
  },
}
SCSS
$custom: #7c8223;
$custom-light: #a5a665;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8223",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 63.789,
    "s": 57.576,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58335,
    "c": 0.1154,
    "h": 113
  },
  "luminance": 0.20372
}

Semantic roles & 50–950 ramp

primary
#7C8223
secondary
#544DB3
accent
#47E151
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8223

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

Preview Lab → · Contrast checker → · Palette generator →

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