#AFB241#AFB241

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

Color values

HEX#AFB241
RGBrgb(175, 178, 65)
HSLhsl(62, 47%, 48%)
HSVhsv(62, 63%, 70%)
CMYKcmyk(1.7%, 0%, 63.5%, 30.2%)
CIE-LABlab(70.41, -15.61, 55.39)
CIE-LCHlch(70.41, 57.55, 105.74°)
OKLaboklab(73.96% -0.0476 0.1257)
OKLCHoklch(73.96% 0.134 110.7)
XYZxyz(34.5547, 41.3373, 11.1586)
Luminance0.4134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB241 #4441B2
analogous
#B27C41 #AFB241 #76B241
triadic
#AFB241 #41AFB2 #B241AF
tetradic
#AFB241 #41B27C #4441B2 #B24176
square
#AFB241 #41B27C #4441B2 #B24176
split-complementary
#AFB241 #4176B2 #7C41B2
monochromatic
#575820 #838531 #AFB241 #C5C868 #D7D895

Accessibility & contrast

On white

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

On black

9.27
#AFB241 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB241
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB241#FFFFFF#000000##000000
##AFB2411.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA33
Deuteranopia (green-blind)
#C0AE48
Tritanopia (blue-blind)
#BBA79B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb241;
/* rgb */ color: rgb(175, 178, 65);
/* oklch */ color: oklch(74.0% 0.134 110.7);
Tailwind
colors: {
  custom: {
    50: '#cac87b',
    500: '#afb241',
    950: '#000000',
  },
}
SCSS
$custom: #afb241;
$custom-light: #cac87b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb241",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 65
  },
  "hsl": {
    "h": 61.593,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73955,
    "c": 0.13441,
    "h": 110.7
  },
  "luminance": 0.41336
}

Semantic roles & 50–950 ramp

primary
#AFB241
secondary
#8C8BC4
accent
#52D655
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB241

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

Preview Lab → · Contrast checker → · Palette generator →

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