#7C821C#7C821C

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

Color values

HEX#7C821C
RGBrgb(124, 130, 28)
HSLhsl(64, 65%, 31%)
HSVhsv(64, 78%, 51%)
CMYKcmyk(4.6%, 0%, 78.5%, 49%)
CIE-LABlab(52.21, -15.07, 50.28)
CIE-LCHlch(52.21, 52.49, 106.69°)
OKLaboklab(58.29% -0.0468 0.1102)
OKLCHoklch(58.29% 0.12 113)
XYZxyz(16.5049, 20.3346, 4.1539)
Luminance0.2033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C821C #221C82
analogous
#82551C #7C821C #49821C
triadic
#7C821C #1C7C82 #821C7C
tetradic
#7C821C #1C8255 #221C82 #821C49
square
#7C821C #1C8255 #221C82 #821C49
split-complementary
#7C821C #1C4982 #551C82
monochromatic
#1C1D06 #4C5011 #7C821C #ACB427 #CED642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C821C#FFFFFF#000000##000000
##7C821C1.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)
#8C7B02
Deuteranopia (green-blind)
#8C7E25
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c821c;
/* rgb */ color: rgb(124, 130, 28);
/* oklch */ color: oklch(58.3% 0.120 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a661',
    500: '#7c821c',
    950: '#000000',
  },
}
SCSS
$custom: #7c821c;
$custom-light: #a5a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7c821c",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 28
  },
  "hsl": {
    "h": 63.529,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58288,
    "c": 0.11969,
    "h": 113
  },
  "luminance": 0.20334
}

Semantic roles & 50–950 ramp

primary
#7C821C
secondary
#4B44B5
accent
#40E84A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C821C

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

Preview Lab → · Contrast checker → · Palette generator →

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