#AFB239#AFB239

#AFB239 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.9% C 0.140 H 110.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFB239
RGBrgb(175, 178, 57)
HSLhsl(61, 51%, 46%)
HSVhsv(61, 68%, 70%)
CMYKcmyk(1.7%, 0%, 68%, 30.2%)
CIE-LABlab(70.35, -16.09, 58.58)
CIE-LCHlch(70.35, 60.75, 105.36°)
OKLaboklab(73.89% -0.0498 0.1312)
OKLCHoklch(73.89% 0.14 110.8)
XYZxyz(34.3392, 41.2511, 10.0235)
Luminance0.4125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB239 #3C39B2
analogous
#B27839 #AFB239 #72B239
triadic
#AFB239 #39AFB2 #B239AF
tetradic
#AFB239 #39B278 #3C39B2 #B23972
square
#AFB239 #39B278 #3C39B2 #B23972
split-complementary
#AFB239 #3972B2 #7839B2
monochromatic
#54551B #81842A #AFB239 #C8CB5D #D8DA8B

Accessibility & contrast

On white

2.27
#AFB239 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFB239 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB239
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB239#FFFFFF#000000##000000
##AFB2391.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA27
Deuteranopia (green-blind)
#C1AE42
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb239;
/* rgb */ color: rgb(175, 178, 57);
/* oklch */ color: oklch(73.9% 0.140 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac877',
    500: '#afb239',
    950: '#000000',
  },
}
SCSS
$custom: #afb239;
$custom-light: #cac877;
$custom-dark: #000000;
JSON
{
  "hex": "#afb239",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 57
  },
  "hsl": {
    "h": 61.488,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73887,
    "c": 0.14028,
    "h": 110.8
  },
  "luminance": 0.4125
}

Semantic roles & 50–950 ramp

primary
#AFB239
secondary
#8482C4
accent
#4DDB50
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB239

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

Preview Lab → · Contrast checker → · Palette generator →

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