#838E2B#838E2B

#838E2B is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.122 H 115.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#838E2B
RGBrgb(131, 142, 43)
HSLhsl(67, 54%, 36%)
HSVhsv(67, 70%, 56%)
CMYKcmyk(7.7%, 0%, 69.7%, 44.3%)
CIE-LABlab(56.43, -17.47, 48.95)
CIE-LCHlch(56.43, 51.97, 109.64°)
OKLaboklab(61.84% -0.0524 0.1098)
OKLCHoklch(61.84% 0.122 115.5)
XYZxyz(19.4696, 24.3460, 5.9586)
Luminance0.2435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E2B #362B8E
analogous
#8E682B #838E2B #528E2B
triadic
#838E2B #2B838E #8E2B83
tetradic
#838E2B #2B8E68 #362B8E #8E2B52
square
#838E2B #2B8E68 #362B8E #8E2B52
split-complementary
#838E2B #2B528E #682B8E
monochromatic
#2C300F #585F1D #838E2B #AEBD39 #C4D063

Accessibility & contrast

On white

3.58
#838E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#838E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E2B
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E2B#FFFFFF#000000##000000
##838E2B1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871C
Deuteranopia (green-blind)
#978832
Tritanopia (blue-blind)
#8B867A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e2b;
/* rgb */ color: rgb(131, 142, 43);
/* oklch */ color: oklch(61.8% 0.122 115.5);
Tailwind
colors: {
  custom: {
    50: '#aaaf6b',
    500: '#838e2b',
    950: '#000000',
  },
}
SCSS
$custom: #838e2b;
$custom-light: #aaaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#838e2b",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 66.667,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61842,
    "c": 0.12171,
    "h": 115.5
  },
  "luminance": 0.24346
}

Semantic roles & 50–950 ramp

primary
#838E2B
secondary
#685FB6
accent
#4BDD5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838E2B

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

Preview Lab → · Contrast checker → · Palette generator →

#838E2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva