#797515#797515

#797515 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.9% C 0.110 H 107.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797515
RGBrgb(121, 117, 21)
HSLhsl(58, 70%, 28%)
HSVhsv(58, 83%, 47%)
CMYKcmyk(0%, 3.3%, 82.6%, 52.5%)
CIE-LABlab(48.06, -9.68, 48.71)
CIE-LCHlch(48.06, 49.67, 101.24°)
OKLaboklab(54.89% -0.0323 0.1056)
OKLCHoklch(54.89% 0.11 107)
XYZxyz(14.3824, 16.8422, 3.2026)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797515 #151979
analogous
#794315 #797515 #4B7915
triadic
#797515 #157975 #751579
tetradic
#797515 #157943 #151979 #79154B
square
#797515 #157943 #151979 #79154B
split-complementary
#797515 #154B79 #431579
monochromatic
#1A1905 #45430C #797515 #ADA71E #DBD42E

Accessibility & contrast

On white

4.81
#797515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #797515
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797515#FFFFFF#000000##FFFFFF
##7975151.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#82741E
Tritanopia (blue-blind)
#826D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797515;
/* rgb */ color: rgb(121, 117, 21);
/* oklch */ color: oklch(54.9% 0.110 107.0);
Tailwind
colors: {
  custom: {
    50: '#a39c5d',
    500: '#797515',
    950: '#000000',
  },
}
SCSS
$custom: #797515;
$custom-light: #a39c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797515",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 57.6,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.54893,
    "c": 0.11039,
    "h": 107
  },
  "luminance": 0.16842
}

Semantic roles & 50–950 ramp

primary
#797515
secondary
#3B40AF
accent
#42ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #797515

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

Preview Lab → · Contrast checker → · Palette generator →

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