#AFB247#AFB247

#AFB247 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.130 H 110.7°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFB247
RGBrgb(175, 178, 71)
HSLhsl(62, 43%, 49%)
HSVhsv(62, 60%, 70%)
CMYKcmyk(1.7%, 0%, 60.1%, 30.2%)
CIE-LABlab(70.46, -15.20, 52.86)
CIE-LCHlch(70.46, 55.00, 106.04°)
OKLaboklab(74.01% -0.0458 0.1212)
OKLCHoklch(74.01% 0.13 110.7)
XYZxyz(34.7379, 41.4105, 12.1231)
Luminance0.4141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB247 #4A47B2
analogous
#B28047 #AFB247 #7AB247
triadic
#AFB247 #47AFB2 #B247AF
tetradic
#AFB247 #47B280 #4A47B2 #B2477A
square
#AFB247 #47B280 #4A47B2 #B2477A
split-complementary
#AFB247 #477AB2 #8047B2
monochromatic
#595B24 #848636 #AFB247 #C4C670 #D6D79C

Accessibility & contrast

On white

2.26
#AFB247 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#AFB247 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB247
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB247#FFFFFF#000000##000000
##AFB2471.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB3B
Deuteranopia (green-blind)
#C0AE4D
Tritanopia (blue-blind)
#BAA89B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb247;
/* rgb */ color: rgb(175, 178, 71);
/* oklch */ color: oklch(74.0% 0.130 110.7);
Tailwind
colors: {
  custom: {
    50: '#c9c87f',
    500: '#afb247',
    950: '#000000',
  },
}
SCSS
$custom: #afb247;
$custom-light: #c9c87f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb247",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 71
  },
  "hsl": {
    "h": 61.682,
    "s": 42.972,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74012,
    "c": 0.12955,
    "h": 110.7
  },
  "luminance": 0.4141
}

Semantic roles & 50–950 ramp

primary
#AFB247
secondary
#9291C4
accent
#55D359
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB247

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

Preview Lab → · Contrast checker → · Palette generator →

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