#7D7018#7D7018

#7D7018 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.104 H 100.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7D7018
RGBrgb(125, 112, 24)
HSLhsl(52, 68%, 29%)
HSVhsv(52, 81%, 49%)
CMYKcmyk(0%, 10.4%, 80.8%, 51%)
CIE-LABlab(46.99, -4.87, 46.92)
CIE-LCHlch(46.99, 47.17, 95.93°)
OKLaboklab(54.14% -0.0187 0.1021)
OKLCHoklch(54.14% 0.104 100.4)
XYZxyz(14.4172, 16.0150, 3.1958)
Luminance0.1601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7018 #18257D
analogous
#7D3E18 #7D7018 #587D18
triadic
#7D7018 #187D70 #70187D
tetradic
#7D7018 #187D3E #18257D #7D1858
square
#7D7018 #187D3E #18257D #7D1858
split-complementary
#7D7018 #18587D #3E187D
monochromatic
#1A1705 #4A420E #7D7018 #B09E22 #D9C437

Accessibility & contrast

On white

5.00
#7D7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7D7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7018
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7018#FFFFFF#000000##FFFFFF
##7D70181.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D03
Deuteranopia (green-blind)
#7F721F
Tritanopia (blue-blind)
#876760
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d7018;
/* rgb */ color: rgb(125, 112, 24);
/* oklch */ color: oklch(54.1% 0.104 100.4);
Tailwind
colors: {
  custom: {
    50: '#a6985d',
    500: '#7d7018',
    950: '#000000',
  },
}
SCSS
$custom: #7d7018;
$custom-light: #a6985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7018",
  "rgb": {
    "r": 125,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 52.277,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5414,
    "c": 0.10384,
    "h": 100.4
  },
  "luminance": 0.16014
}

Semantic roles & 50–950 ramp

primary
#7D7018
secondary
#3F4EB2
accent
#53EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7D7018

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

Preview Lab → · Contrast checker → · Palette generator →

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