#797518#797518

#797518 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 54.9% C 0.109 H 106.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#797518
RGBrgb(121, 117, 24)
HSLhsl(58, 67%, 28%)
HSVhsv(58, 80%, 47%)
CMYKcmyk(0%, 3.3%, 80.2%, 52.5%)
CIE-LABlab(48.08, -9.56, 47.76)
CIE-LCHlch(48.08, 48.70, 101.33°)
OKLaboklab(54.91% -0.0317 0.1041)
OKLCHoklch(54.91% 0.109 106.9)
XYZxyz(14.4119, 16.8540, 3.3580)
Luminance0.1685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797518 #181C79
analogous
#794418 #797518 #4C7918
triadic
#797518 #187975 #751879
tetradic
#797518 #187944 #181C79 #79184C
square
#797518 #187944 #181C79 #79184C
split-complementary
#797518 #184C79 #441879
monochromatic
#1A1905 #46440E #797518 #ACA622 #D7D035

Accessibility & contrast

On white

4.80
#797518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#797518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797518
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797518#FFFFFF#000000##FFFFFF
##7975181.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807001
Deuteranopia (green-blind)
#817420
Tritanopia (blue-blind)
#826D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797518;
/* rgb */ color: rgb(121, 117, 24);
/* oklch */ color: oklch(54.9% 0.109 106.9);
Tailwind
colors: {
  custom: {
    50: '#a39c5e',
    500: '#797518',
    950: '#000000',
  },
}
SCSS
$custom: #797518;
$custom-light: #a39c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797518",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 57.526,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5491,
    "c": 0.10883,
    "h": 106.9
  },
  "luminance": 0.16853
}

Semantic roles & 50–950 ramp

primary
#797518
secondary
#3F44AE
accent
#45EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797518

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

Preview Lab → · Contrast checker → · Palette generator →

#797518 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva