#AFB339#AFB339

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

Color values

HEX#AFB339
RGBrgb(175, 179, 57)
HSLhsl(62, 52%, 46%)
HSVhsv(62, 68%, 70%)
CMYKcmyk(2.2%, 0%, 68.2%, 29.8%)
CIE-LABlab(70.63, -16.60, 58.86)
CIE-LCHlch(70.63, 61.15, 105.75°)
OKLaboklab(74.11% -0.0512 0.1318)
OKLCHoklch(74.11% 0.141 111.2)
XYZxyz(34.5389, 41.6504, 10.0900)
Luminance0.4165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB339 #3D39B3
analogous
#B37A39 #AFB339 #72B339
triadic
#AFB339 #39AFB3 #B339AF
tetradic
#AFB339 #39B37A #3D39B3 #B33972
square
#AFB339 #39B37A #3D39B3 #B33972
split-complementary
#AFB339 #3972B3 #7A39B3
monochromatic
#54561B #82852A #AFB339 #C8CC5E #D8DA8C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB339#FFFFFF#000000##000000
##AFB3391.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)
#C1AB26
Deuteranopia (green-blind)
#C1AE42
Tritanopia (blue-blind)
#BBA89B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb339;
/* rgb */ color: rgb(175, 179, 57);
/* oklch */ color: oklch(74.1% 0.141 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac977',
    500: '#afb339',
    950: '#000000',
  },
}
SCSS
$custom: #afb339;
$custom-light: #cac977;
$custom-dark: #000000;
JSON
{
  "hex": "#afb339",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 57
  },
  "hsl": {
    "h": 61.967,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74109,
    "c": 0.14135,
    "h": 111.2
  },
  "luminance": 0.4165
}

Semantic roles & 50–950 ramp

primary
#AFB339
secondary
#8583C5
accent
#4DDB51
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB339

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

Preview Lab → · Contrast checker → · Palette generator →

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