#798A1C#798A1C

#798A1C is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.130 H 118.4°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#798A1C
RGBrgb(121, 138, 28)
HSLhsl(69, 66%, 33%)
HSVhsv(69, 80%, 54%)
CMYKcmyk(12.3%, 0%, 79.7%, 45.9%)
CIE-LABlab(54.37, -20.60, 52.17)
CIE-LCHlch(54.37, 56.09, 111.55°)
OKLaboklab(59.96% -0.0619 0.1143)
OKLCHoklch(59.96% 0.13 118.4)
XYZxyz(17.1836, 22.3259, 4.5025)
Luminance0.2233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A1C #2D1C8A
analogous
#8A641C #798A1C #428A1C
triadic
#798A1C #1C798A #8A1C79
tetradic
#798A1C #1C8A64 #2D1C8A #8A1C42
square
#798A1C #1C8A64 #2D1C8A #8A1C42
split-complementary
#798A1C #1C428A #641C8A
monochromatic
#202407 #4C5712 #798A1C #A6BD26 #C3DA47

Accessibility & contrast

On white

3.84
#798A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#798A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A1C
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A1C#FFFFFF#000000##000000
##798A1C1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928227
Tritanopia (blue-blind)
#818276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a1c;
/* rgb */ color: rgb(121, 138, 28);
/* oklch */ color: oklch(60.0% 0.130 118.4);
Tailwind
colors: {
  custom: {
    50: '#a3ac63',
    500: '#798a1c',
    950: '#000000',
  },
}
SCSS
$custom: #798a1c;
$custom-light: #a3ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#798a1c",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 69.273,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59962,
    "c": 0.12997,
    "h": 118.4
  },
  "luminance": 0.22326
}

Semantic roles & 50–950 ramp

primary
#798A1C
secondary
#5846BB
accent
#3FE959
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A1C

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

Preview Lab → · Contrast checker → · Palette generator →

#798A1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva