#7C8227#7C8227

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

Color values

HEX#7C8227
RGBrgb(124, 130, 39)
HSLhsl(64, 54%, 33%)
HSVhsv(64, 70%, 51%)
CMYKcmyk(4.6%, 0%, 70%, 49%)
CIE-LABlab(52.28, -14.49, 46.21)
CIE-LCHlch(52.28, 48.43, 107.41°)
OKLaboklab(58.37% -0.0441 0.1036)
OKLCHoklch(58.37% 0.113 113.1)
XYZxyz(16.6615, 20.3972, 4.9784)
Luminance0.2040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8227 #2D2782
analogous
#825A27 #7C8227 #4E8227
triadic
#7C8227 #277C82 #82277C
tetradic
#7C8227 #27825A #2D2782 #82274E
square
#7C8227 #27825A #2D2782 #82274E
split-complementary
#7C8227 #274E82 #5A2782
monochromatic
#22240B #4F5319 #7C8227 #A9B135 #C5CD57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8227#FFFFFF#000000##000000
##7C82271.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)
#8C7C19
Deuteranopia (green-blind)
#8C7E2E
Tritanopia (blue-blind)
#847A70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8227;
/* rgb */ color: rgb(124, 130, 39);
/* oklch */ color: oklch(58.4% 0.113 113.1);
Tailwind
colors: {
  custom: {
    50: '#a5a667',
    500: '#7c8227',
    950: '#000000',
  },
}
SCSS
$custom: #7c8227;
$custom-light: #a5a667;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8227",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 63.956,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58367,
    "c": 0.11259,
    "h": 113.1
  },
  "luminance": 0.20397
}

Semantic roles & 50–950 ramp

primary
#7C8227
secondary
#5A53B1
accent
#4BDD54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8227

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

Preview Lab → · Contrast checker → · Palette generator →

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