#7E7318#7E7318

#7E7318 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.9% C 0.106 H 102.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7E7318
RGBrgb(126, 115, 24)
HSLhsl(54, 68%, 29%)
HSVhsv(54, 81%, 49%)
CMYKcmyk(0%, 8.7%, 81%, 50.6%)
CIE-LABlab(47.96, -6.09, 47.83)
CIE-LCHlch(47.96, 48.21, 97.26°)
OKLaboklab(54.93% -0.0222 0.104)
OKLCHoklch(54.93% 0.106 102)
XYZxyz(14.9005, 16.7637, 3.3148)
Luminance0.1676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7318 #18237E
analogous
#7E4018 #7E7318 #567E18
triadic
#7E7318 #187E73 #73187E
tetradic
#7E7318 #187E40 #18237E #7E1856
square
#7E7318 #187E40 #18237E #7E1856
split-complementary
#7E7318 #18567E #40187E
monochromatic
#1A1705 #4B440E #7E7318 #B1A222 #D9C837

Accessibility & contrast

On white

4.82
#7E7318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E7318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7318
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7318#FFFFFF#000000##FFFFFF
##7E73181.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F02
Deuteranopia (green-blind)
#82741F
Tritanopia (blue-blind)
#886A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e7318;
/* rgb */ color: rgb(126, 115, 24);
/* oklch */ color: oklch(54.9% 0.106 102.0);
Tailwind
colors: {
  custom: {
    50: '#a79a5e',
    500: '#7e7318',
    950: '#000000',
  },
}
SCSS
$custom: #7e7318;
$custom-light: #a79a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7318",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 53.529,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54931,
    "c": 0.10638,
    "h": 102
  },
  "luminance": 0.16763
}

Semantic roles & 50–950 ramp

primary
#7E7318
secondary
#3F4CB2
accent
#50EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7318

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

Preview Lab → · Contrast checker → · Palette generator →

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