#798728#798728

#798728 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.119 H 117.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#798728
RGBrgb(121, 135, 40)
HSLhsl(69, 54%, 34%)
HSVhsv(69, 70%, 53%)
CMYKcmyk(10.4%, 0%, 70.4%, 47.1%)
CIE-LABlab(53.54, -18.41, 47.00)
CIE-LCHlch(53.54, 50.47, 111.39°)
OKLaboklab(59.32% -0.0547 0.1055)
OKLCHoklch(59.32% 0.119 117.4)
XYZxyz(16.9325, 21.5463, 5.2739)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798728 #362887
analogous
#876628 #798728 #4A8728
triadic
#798728 #287987 #872879
tetradic
#798728 #288766 #362887 #87284A
square
#798728 #288766 #362887 #87284A
split-complementary
#798728 #284A87 #662887
monochromatic
#24290C #4F581A #798728 #A3B636 #BDCE5B

Accessibility & contrast

On white

3.96
#798728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#798728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798728
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798728#FFFFFF#000000##000000
##7987281.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#908019
Deuteranopia (green-blind)
#8F802F
Tritanopia (blue-blind)
#807F74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798728;
/* rgb */ color: rgb(121, 135, 40);
/* oklch */ color: oklch(59.3% 0.119 117.4);
Tailwind
colors: {
  custom: {
    50: '#a2a968',
    500: '#798728',
    950: '#000000',
  },
}
SCSS
$custom: #798728;
$custom-light: #a2a968;
$custom-dark: #000000;
JSON
{
  "hex": "#798728",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 68.842,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59319,
    "c": 0.11886,
    "h": 117.4
  },
  "luminance": 0.21546
}

Semantic roles & 50–950 ramp

primary
#798728
secondary
#6557B4
accent
#4ADE60
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798728

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

Preview Lab → · Contrast checker → · Palette generator →

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