#7C8228#7C8228

#7C8228 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.112 H 113.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7C8228
RGBrgb(124, 130, 40)
HSLhsl(64, 53%, 33%)
HSVhsv(64, 69%, 51%)
CMYKcmyk(4.6%, 0%, 69.2%, 49%)
CIE-LABlab(52.29, -14.43, 45.81)
CIE-LCHlch(52.29, 48.03, 107.49°)
OKLaboklab(58.38% -0.0438 0.1029)
OKLCHoklch(58.38% 0.112 113.1)
XYZxyz(16.6783, 20.4039, 5.0668)
Luminance0.2040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8228 #2E2882
analogous
#825B28 #7C8228 #4F8228
triadic
#7C8228 #287C82 #82287C
tetradic
#7C8228 #28825B #2E2882 #82284F
square
#7C8228 #28825B #2E2882 #82284F
split-complementary
#7C8228 #284F82 #5B2882
monochromatic
#23240B #4F531A #7C8228 #A9B136 #C4CC59

Accessibility & contrast

On white

4.13
#7C8228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7C8228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8228
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8228#FFFFFF#000000##000000
##7C82281.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1B
Deuteranopia (green-blind)
#8C7E2E
Tritanopia (blue-blind)
#847A70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8228;
/* rgb */ color: rgb(124, 130, 40);
/* oklch */ color: oklch(58.4% 0.112 113.1);
Tailwind
colors: {
  custom: {
    50: '#a5a668',
    500: '#7c8228',
    950: '#000000',
  },
}
SCSS
$custom: #7c8228;
$custom-light: #a5a668;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8228",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 64,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58375,
    "c": 0.11186,
    "h": 113.1
  },
  "luminance": 0.20404
}

Semantic roles & 50–950 ramp

primary
#7C8228
secondary
#5B55B1
accent
#4BDC55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8228

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

Preview Lab → · Contrast checker → · Palette generator →

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