#AFB338#AFB338

#AFB338 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.142 H 111.2°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFB338
RGBrgb(175, 179, 56)
HSLhsl(62, 52%, 46%)
HSVhsv(62, 69%, 70%)
CMYKcmyk(2.2%, 0%, 68.7%, 29.8%)
CIE-LABlab(70.62, -16.66, 59.23)
CIE-LCHlch(70.62, 61.53, 105.71°)
OKLaboklab(74.1% -0.0514 0.1324)
OKLCHoklch(74.1% 0.142 111.2)
XYZxyz(34.5142, 41.6406, 9.9599)
Luminance0.4164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB338 #3C38B3
analogous
#B37938 #AFB338 #71B338
triadic
#AFB338 #38AFB3 #B338AF
tetradic
#AFB338 #38B379 #3C38B3 #B33871
square
#AFB338 #38B379 #3C38B3 #B33871
split-complementary
#AFB338 #3871B3 #7938B3
monochromatic
#54561B #818429 #AFB338 #C8CC5C #D8DB8B

Accessibility & contrast

On white

2.25
#AFB338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFB338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB338
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB338#FFFFFF#000000##000000
##AFB3381.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C2AE41
Tritanopia (blue-blind)
#BBA89B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb338;
/* rgb */ color: rgb(175, 179, 56);
/* oklch */ color: oklch(74.1% 0.142 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac976',
    500: '#afb338',
    950: '#000000',
  },
}
SCSS
$custom: #afb338;
$custom-light: #cac976;
$custom-dark: #000000;
JSON
{
  "hex": "#afb338",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 61.951,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74102,
    "c": 0.14202,
    "h": 111.2
  },
  "luminance": 0.4164
}

Semantic roles & 50–950 ramp

primary
#AFB338
secondary
#8482C5
accent
#4CDC51
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB338

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

Preview Lab → · Contrast checker → · Palette generator →

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