#7F781C#7F781C

#7F781C is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.109 H 104.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F781C
RGBrgb(127, 120, 28)
HSLhsl(56, 64%, 30%)
HSVhsv(56, 78%, 50%)
CMYKcmyk(0%, 5.5%, 78%, 50.2%)
CIE-LABlab(49.53, -8.25, 47.90)
CIE-LCHlch(49.53, 48.60, 99.77°)
OKLaboklab(56.21% -0.0279 0.105)
OKLCHoklch(56.21% 0.109 104.9)
XYZxyz(15.6791, 18.0294, 3.7525)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F781C #1C237F
analogous
#7F471C #7F781C #547F1C
triadic
#7F781C #1C7F78 #781C7F
tetradic
#7F781C #1C7F47 #1C237F #7F1C54
square
#7F781C #1C7F47 #1C237F #7F1C54
split-complementary
#7F781C #1C547F #471C7F
monochromatic
#1B1906 #4D4911 #7F781C #B1A727 #D5CA40

Accessibility & contrast

On white

4.56
#7F781C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7F781C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F781C
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F781C#FFFFFF#000000##000000
##7F781C1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#837408
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#896F67
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f781c;
/* rgb */ color: rgb(127, 120, 28);
/* oklch */ color: oklch(56.2% 0.109 104.9);
Tailwind
colors: {
  custom: {
    50: '#a79e60',
    500: '#7f781c',
    950: '#000000',
  },
}
SCSS
$custom: #7f781c;
$custom-light: #a79e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f781c",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 55.758,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.10863,
    "h": 104.9
  },
  "luminance": 0.18029
}

Semantic roles & 50–950 ramp

primary
#7F781C
secondary
#444CB3
accent
#4DE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F781C

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

Preview Lab → · Contrast checker → · Palette generator →

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