#798428#798428

#798428 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.115 H 115.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#798428
RGBrgb(121, 132, 40)
HSLhsl(67, 53%, 34%)
HSVhsv(67, 70%, 52%)
CMYKcmyk(8.3%, 0%, 69.7%, 48.2%)
CIE-LABlab(52.64, -16.84, 46.08)
CIE-LCHlch(52.64, 49.06, 110.07°)
OKLaboklab(58.6% -0.0504 0.1036)
OKLCHoklch(58.6% 0.115 115.9)
XYZxyz(16.5198, 20.7209, 5.1364)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798428 #332884
analogous
#846128 #798428 #4B8428
triadic
#798428 #287984 #842879
tetradic
#798428 #288461 #332884 #84284B
square
#798428 #288461 #332884 #84284B
split-complementary
#798428 #284B84 #612884
monochromatic
#23260C #4E551A #798428 #A4B336 #BFCD5A

Accessibility & contrast

On white

4.08
#798428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#798428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798428
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798428#FFFFFF#000000##000000
##7984281.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1A
Deuteranopia (green-blind)
#8C7E2F
Tritanopia (blue-blind)
#817C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798428;
/* rgb */ color: rgb(121, 132, 40);
/* oklch */ color: oklch(58.6% 0.115 115.9);
Tailwind
colors: {
  custom: {
    50: '#a2a768',
    500: '#798428',
    950: '#000000',
  },
}
SCSS
$custom: #798428;
$custom-light: #a2a768;
$custom-dark: #000000;
JSON
{
  "hex": "#798428",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 67.174,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58596,
    "c": 0.11518,
    "h": 115.9
  },
  "luminance": 0.20721
}

Semantic roles & 50–950 ramp

primary
#798428
secondary
#6156B2
accent
#4BDD5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798428

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

Preview Lab → · Contrast checker → · Palette generator →

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