#7C7E1B#7C7E1B

#7C7E1B is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.116 H 110.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7C7E1B
RGBrgb(124, 126, 27)
HSLhsl(61, 65%, 30%)
HSVhsv(61, 79%, 49%)
CMYKcmyk(1.6%, 0%, 78.6%, 50.6%)
CIE-LABlab(51.02, -12.97, 49.52)
CIE-LCHlch(51.02, 51.19, 104.67°)
OKLaboklab(57.33% -0.0411 0.1084)
OKLCHoklch(57.33% 0.116 110.7)
XYZxyz(15.9714, 19.2864, 3.9180)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7E1B #1D1B7E
analogous
#7E4E1B #7C7E1B #4B7E1B
triadic
#7C7E1B #1B7C7E #7E1B7C
tetradic
#7C7E1B #1B7E4E #1D1B7E #7E1B4B
square
#7C7E1B #1B7E4E #1D1B7E #7E1B4B
split-complementary
#7C7E1B #1B4B7E #4E1B7E
monochromatic
#191905 #4A4C10 #7C7E1B #AEB026 #D3D63E

Accessibility & contrast

On white

4.32
#7C7E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#7C7E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7E1B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7E1B#FFFFFF#000000##000000
##7C7E1B1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#887802
Deuteranopia (green-blind)
#897B23
Tritanopia (blue-blind)
#85766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7e1b;
/* rgb */ color: rgb(124, 126, 27);
/* oklch */ color: oklch(57.3% 0.116 110.7);
Tailwind
colors: {
  custom: {
    50: '#a5a360',
    500: '#7c7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c7e1b;
$custom-light: #a5a360;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7e1b",
  "rgb": {
    "r": 124,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 61.212,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.57332,
    "c": 0.11587,
    "h": 110.7
  },
  "luminance": 0.19286
}

Semantic roles & 50–950 ramp

primary
#7C7E1B
secondary
#4543B2
accent
#40E843
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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