#798338#798338

#798338 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.100 H 115.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#798338
RGBrgb(121, 131, 56)
HSLhsl(68, 40%, 37%)
HSVhsv(68, 57%, 51%)
CMYKcmyk(7.6%, 0%, 57.3%, 48.6%)
CIE-LABlab(52.49, -15.08, 38.61)
CIE-LCHlch(52.49, 41.45, 111.34°)
OKLaboklab(58.52% -0.0437 0.09)
OKLCHoklch(58.52% 0.1 115.9)
XYZxyz(16.7156, 20.5833, 6.8330)
Luminance0.2058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798338 #423883
analogous
#836838 #798338 #548338
triadic
#798338 #387983 #833879
tetradic
#798338 #388368 #423883 #833854
square
#798338 #388368 #423883 #833854
split-complementary
#798338 #385483 #683883
monochromatic
#2A2D13 #515826 #798338 #A1AE4A #B8C372

Accessibility & contrast

On white

4.10
#798338 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#798338 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798338
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798338#FFFFFF#000000##000000
##7983381.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D30
Deuteranopia (green-blind)
#8B7E3C
Tritanopia (blue-blind)
#807C72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798338;
/* rgb */ color: rgb(121, 131, 56);
/* oklch */ color: oklch(58.5% 0.100 115.9);
Tailwind
colors: {
  custom: {
    50: '#a1a771',
    500: '#798338',
    950: '#000000',
  },
}
SCSS
$custom: #798338;
$custom-light: #a1a771;
$custom-dark: #000000;
JSON
{
  "hex": "#798338",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 56
  },
  "hsl": {
    "h": 68,
    "s": 40.107,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58521,
    "c": 0.10008,
    "h": 115.9
  },
  "luminance": 0.20583
}

Semantic roles & 50–950 ramp

primary
#798338
secondary
#746BAC
accent
#58D068
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #798338

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

Preview Lab → · Contrast checker → · Palette generator →

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