#7C831F#7C831F

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

Color values

HEX#7C831F
RGBrgb(124, 131, 31)
HSLhsl(64, 62%, 32%)
HSVhsv(64, 76%, 51%)
CMYKcmyk(5.3%, 0%, 76.3%, 48.6%)
CIE-LABlab(52.53, -15.46, 49.53)
CIE-LCHlch(52.53, 51.89, 107.34°)
OKLaboklab(58.55% -0.0476 0.1092)
OKLCHoklch(58.55% 0.119 113.6)
XYZxyz(16.6763, 20.6170, 4.3971)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C831F #261F83
analogous
#83581F #7C831F #4A831F
triadic
#7C831F #1F7C83 #831F7C
tetradic
#7C831F #1F8358 #261F83 #831F4A
square
#7C831F #1F8358 #261F83 #831F4A
split-complementary
#7C831F #1F4A83 #581F83
monochromatic
#1E2008 #4D5213 #7C831F #ABB42B #CAD449

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C831F#FFFFFF#000000##000000
##7C831F1.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)
#8D7C09
Deuteranopia (green-blind)
#8D7E27
Tritanopia (blue-blind)
#857B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c831f;
/* rgb */ color: rgb(124, 131, 31);
/* oklch */ color: oklch(58.5% 0.119 113.6);
Tailwind
colors: {
  custom: {
    50: '#a5a663',
    500: '#7c831f',
    950: '#000000',
  },
}
SCSS
$custom: #7c831f;
$custom-light: #a5a663;
$custom-dark: #000000;
JSON
{
  "hex": "#7c831f",
  "rgb": {
    "r": 124,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 64.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58545,
    "c": 0.11909,
    "h": 113.6
  },
  "luminance": 0.20617
}

Semantic roles & 50–950 ramp

primary
#7C831F
secondary
#5048B6
accent
#43E54E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C831F

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

Preview Lab → · Contrast checker → · Palette generator →

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