#7C831C#7C831C

#7C831C is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.121 H 113.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7C831C
RGBrgb(124, 131, 28)
HSLhsl(64, 65%, 31%)
HSVhsv(64, 79%, 51%)
CMYKcmyk(5.3%, 0%, 78.6%, 48.6%)
CIE-LABlab(52.51, -15.60, 50.55)
CIE-LCHlch(52.51, 52.91, 107.15°)
OKLaboklab(58.53% -0.0483 0.1107)
OKLCHoklch(58.53% 0.121 113.6)
XYZxyz(16.6386, 20.6019, 4.1985)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C831C #231C83
analogous
#83561C #7C831C #48831C
triadic
#7C831C #1C7C83 #831C7C
tetradic
#7C831C #1C8356 #231C83 #831C48
square
#7C831C #1C8356 #231C83 #831C48
split-complementary
#7C831C #1C4883 #561C83
monochromatic
#1D1E06 #4C5111 #7C831C #ACB527 #CDD743

Accessibility & contrast

On white

4.10
#7C831C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7C831C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C831C
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C831C#FFFFFF#000000##000000
##7C831C1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C02
Deuteranopia (green-blind)
#8D7E25
Tritanopia (blue-blind)
#857B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c831c;
/* rgb */ color: rgb(124, 131, 28);
/* oklch */ color: oklch(58.5% 0.121 113.6);
Tailwind
colors: {
  custom: {
    50: '#a5a662',
    500: '#7c831c',
    950: '#000000',
  },
}
SCSS
$custom: #7c831c;
$custom-light: #a5a662;
$custom-dark: #000000;
JSON
{
  "hex": "#7c831c",
  "rgb": {
    "r": 124,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 64.078,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58527,
    "c": 0.12081,
    "h": 113.6
  },
  "luminance": 0.20602
}

Semantic roles & 50–950 ramp

primary
#7C831C
secondary
#4C45B6
accent
#40E84B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C831C

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

Preview Lab → · Contrast checker → · Palette generator →

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