#AFB838#AFB838

#AFB838 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.2% C 0.147 H 113.4°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#AFB838
RGBrgb(175, 184, 56)
HSLhsl(64, 53%, 47%)
HSVhsv(64, 70%, 72%)
CMYKcmyk(4.9%, 0%, 69.6%, 27.8%)
CIE-LABlab(72.01, -19.18, 60.62)
CIE-LCHlch(72.01, 63.58, 107.55°)
OKLaboklab(75.22% -0.0585 0.1353)
OKLCHoklch(75.22% 0.147 113.4)
XYZxyz(35.5345, 43.6812, 10.3000)
Luminance0.4368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB838 #4138B8
analogous
#B88138 #AFB838 #6FB838
triadic
#AFB838 #38AFB8 #B838AF
tetradic
#AFB838 #38B881 #4138B8 #B8386F
square
#AFB838 #38B881 #4138B8 #B8386F
split-complementary
#AFB838 #386FB8 #8138B8
monochromatic
#565A1B #82892A #AFB838 #C6CE5F #D7DD8E

Accessibility & contrast

On white

2.16
#AFB838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.74
#AFB838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB838
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB838#FFFFFF#000000##000000
##AFB8381.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF23
Deuteranopia (green-blind)
#C5B242
Tritanopia (blue-blind)
#BBAD9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb838;
/* rgb */ color: rgb(175, 184, 56);
/* oklch */ color: oklch(75.2% 0.147 113.4);
Tailwind
colors: {
  custom: {
    50: '#cacd77',
    500: '#afb838',
    950: '#000000',
  },
}
SCSS
$custom: #afb838;
$custom-light: #cacd77;
$custom-dark: #000000;
JSON
{
  "hex": "#afb838",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 64.219,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75216,
    "c": 0.1474,
    "h": 113.4
  },
  "luminance": 0.4368
}

Semantic roles & 50–950 ramp

primary
#AFB838
secondary
#8985C7
accent
#4BDD55
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB838

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

Preview Lab → · Contrast checker → · Palette generator →

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