#7C7018#7C7018

#7C7018 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.104 H 101.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7C7018
RGBrgb(124, 112, 24)
HSLhsl(53, 68%, 29%)
HSVhsv(53, 81%, 49%)
CMYKcmyk(0%, 9.7%, 80.6%, 51.4%)
CIE-LABlab(46.90, -5.35, 46.79)
CIE-LCHlch(46.90, 47.10, 96.52°)
OKLaboklab(54.04% -0.02 0.1019)
OKLCHoklch(54.04% 0.104 101.1)
XYZxyz(14.2719, 15.9400, 3.1890)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7018 #18247C
analogous
#7C3E18 #7C7018 #567C18
triadic
#7C7018 #187C70 #70187C
tetradic
#7C7018 #187C3E #18247C #7C1856
square
#7C7018 #187C3E #18247C #7C1856
split-complementary
#7C7018 #18567C #3E187C
monochromatic
#1A1705 #49420E #7C7018 #AF9E22 #D8C536

Accessibility & contrast

On white

5.01
#7C7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7C7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7018
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7018#FFFFFF#000000##FFFFFF
##7C70181.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C03
Deuteranopia (green-blind)
#7F711F
Tritanopia (blue-blind)
#866760
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7c7018;
/* rgb */ color: rgb(124, 112, 24);
/* oklch */ color: oklch(54.0% 0.104 101.1);
Tailwind
colors: {
  custom: {
    50: '#a5985d',
    500: '#7c7018',
    950: '#000000',
  },
}
SCSS
$custom: #7c7018;
$custom-light: #a5985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7018",
  "rgb": {
    "r": 124,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 52.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54039,
    "c": 0.10386,
    "h": 101.1
  },
  "luminance": 0.15939
}

Semantic roles & 50–950 ramp

primary
#7C7018
secondary
#3F4DB1
accent
#52EA3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7C7018

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

Preview Lab → · Contrast checker → · Palette generator →

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