#AFB240#AFB240

#AFB240 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.135 H 110.7°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFB240
RGBrgb(175, 178, 64)
HSLhsl(62, 47%, 47%)
HSVhsv(62, 64%, 70%)
CMYKcmyk(1.7%, 0%, 64%, 30.2%)
CIE-LABlab(70.40, -15.67, 55.80)
CIE-LCHlch(70.40, 57.96, 105.69°)
OKLaboklab(73.95% -0.0478 0.1264)
OKLCHoklch(73.95% 0.135 110.7)
XYZxyz(34.5260, 41.3258, 11.0074)
Luminance0.4133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB240 #4340B2
analogous
#B27C40 #AFB240 #76B240
triadic
#AFB240 #40AFB2 #B240AF
tetradic
#AFB240 #40B27C #4340B2 #B24076
square
#AFB240 #40B27C #4340B2 #B24076
split-complementary
#AFB240 #4076B2 #7C40B2
monochromatic
#565820 #838530 #AFB240 #C6C867 #D7D894

Accessibility & contrast

On white

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

On black

9.26
#AFB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB240
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB240#FFFFFF#000000##000000
##AFB2401.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb240;
/* rgb */ color: rgb(175, 178, 64);
/* oklch */ color: oklch(73.9% 0.135 110.7);
Tailwind
colors: {
  custom: {
    50: '#cac87b',
    500: '#afb240',
    950: '#000000',
  },
}
SCSS
$custom: #afb240;
$custom-light: #cac87b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb240",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 61.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.73946,
    "c": 0.13518,
    "h": 110.7
  },
  "luminance": 0.41325
}

Semantic roles & 50–950 ramp

primary
#AFB240
secondary
#8B8AC4
accent
#51D755
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB240

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

Preview Lab → · Contrast checker → · Palette generator →

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